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 {
9595 Html .fromElement ({
9696 Key ? key,
9797 GlobalKey ? anchorKey,
98- this .document,
98+ @required this .document,
9999 this .onLinkTap,
100100 this .onAnchorTap,
101101 this .customRender = const {},
@@ -174,7 +174,7 @@ class Html extends StatelessWidget {
174174
175175 @override
176176 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! ;
178178 final double ? width = shrinkWrap ? null : MediaQuery .of (context).size.width;
179179
180180 return Container (
@@ -192,7 +192,9 @@ class Html extends StatelessWidget {
192192 selectable: false ,
193193 style: style,
194194 customRender: customRender,
195- imageRenders: {}..addAll (customImageRenders)..addAll (defaultImageRenders),
195+ imageRenders: {}
196+ ..addAll (customImageRenders)
197+ ..addAll (defaultImageRenders),
196198 tagsList: tagsList.isEmpty ? Html .tags : tagsList,
197199 navigationDelegateForIframe: navigationDelegateForIframe,
198200 ),
You can’t perform that action at this time.
0 commit comments