Skip to content

Commit 944b311

Browse files
authored
Merge pull request Sub6Resources#865 from ugifractal/fix-example-for-custom-render
fix example README for custom render, fix example code for custom render
2 parents 8f2c0c5 + 7513984 commit 944b311

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ const htmlData = """
158158
body: SingleChildScrollView(
159159
child: Html(
160160
data: htmlData,
161+
tagsList: Html.tags..addAll(["flutter"]),
161162
//Optional parameters:
162163
style: {
163164
"html": Style(

example/lib/main.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ class _MyHomePageState extends State<MyHomePage> {
250250
body: SingleChildScrollView(
251251
child: Html(
252252
data: htmlData,
253+
tagsList: Html.tags..addAll(["bird", "flutter"]),
253254
style: {
254255
"table": Style(
255256
backgroundColor: Color.fromARGB(0x50, 0xee, 0xee, 0xee),

0 commit comments

Comments
 (0)