Skip to content

Commit 86e42ab

Browse files
committed
[URGENT] fix for copyOnlyInherited on null error after shrinkWrap fixes
1 parent 9327fe9 commit 86e42ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/html_parser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class HtmlParser extends StatelessWidget {
247247
RenderContext newContext = RenderContext(
248248
buildContext: context.buildContext,
249249
parser: this,
250-
style: context.style.copyOnlyInherited(tree.style),
250+
style: context.style?.copyOnlyInherited(tree.style) ?? Style.fromTextStyle(Theme.of(context.buildContext).textTheme.bodyText2),
251251
);
252252

253253
if (customRender?.containsKey(tree.name) ?? false) {

0 commit comments

Comments
 (0)