We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
copyOnlyInherited on null
1 parent 9327fe9 commit 86e42abCopy full SHA for 86e42ab
lib/html_parser.dart
@@ -247,7 +247,7 @@ class HtmlParser extends StatelessWidget {
247
RenderContext newContext = RenderContext(
248
buildContext: context.buildContext,
249
parser: this,
250
- style: context.style.copyOnlyInherited(tree.style),
+ style: context.style?.copyOnlyInherited(tree.style) ?? Style.fromTextStyle(Theme.of(context.buildContext).textTheme.bodyText2),
251
);
252
253
if (customRender?.containsKey(tree.name) ?? false) {
0 commit comments