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.
1 parent 86e42ab commit c43b903Copy full SHA for c43b903
lib/html_parser.dart
@@ -68,6 +68,7 @@ class HtmlParser extends StatelessWidget {
68
RenderContext(
69
buildContext: context,
70
parser: this,
71
+ style: Style.fromTextStyle(Theme.of(context).textTheme.bodyText2),
72
),
73
cleanedTree,
74
);
@@ -247,7 +248,7 @@ class HtmlParser extends StatelessWidget {
247
248
RenderContext newContext = RenderContext(
249
buildContext: context.buildContext,
250
- style: context.style?.copyOnlyInherited(tree.style) ?? Style.fromTextStyle(Theme.of(context.buildContext).textTheme.bodyText2),
251
+ style: context.style?.copyOnlyInherited(tree.style),
252
253
254
if (customRender?.containsKey(tree.name) ?? false) {
0 commit comments