File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class Html extends StatelessWidget {
95
95
Html .fromElement ({
96
96
Key ? key,
97
97
GlobalKey ? anchorKey,
98
- this .document,
98
+ @required this .document,
99
99
this .onLinkTap,
100
100
this .onAnchorTap,
101
101
this .customRender = const {},
@@ -174,7 +174,7 @@ class Html extends StatelessWidget {
174
174
175
175
@override
176
176
Widget build (BuildContext context) {
177
- final dom.Element doc = data != null ? HtmlParser .parseHTML (data! ): document! ;
177
+ final dom.Element doc = data != null ? HtmlParser .parseHTML (data! ) : document! ;
178
178
final double ? width = shrinkWrap ? null : MediaQuery .of (context).size.width;
179
179
180
180
return Container (
@@ -192,7 +192,9 @@ class Html extends StatelessWidget {
192
192
selectable: false ,
193
193
style: style,
194
194
customRender: customRender,
195
- imageRenders: {}..addAll (customImageRenders)..addAll (defaultImageRenders),
195
+ imageRenders: {}
196
+ ..addAll (customImageRenders)
197
+ ..addAll (defaultImageRenders),
196
198
tagsList: tagsList.isEmpty ? Html .tags : tagsList,
197
199
navigationDelegateForIframe: navigationDelegateForIframe,
198
200
),
You can’t perform that action at this time.
0 commit comments