diff --git a/lib/html_parser.dart b/lib/html_parser.dart
index 91cec7a880..60732287d4 100644
--- a/lib/html_parser.dart
+++ b/lib/html_parser.dart
@@ -68,6 +68,7 @@ class HtmlParser extends StatelessWidget {
RenderContext(
buildContext: context,
parser: this,
+ style: Style.fromTextStyle(Theme.of(context).textTheme.bodyText2),
),
cleanedTree,
);
@@ -247,7 +248,7 @@ class HtmlParser extends StatelessWidget {
RenderContext newContext = RenderContext(
buildContext: context.buildContext,
parser: this,
- style: context.style.copyOnlyInherited(tree.style),
+ style: context.style?.copyOnlyInherited(tree.style),
);
if (customRender?.containsKey(tree.name) ?? false) {