Skip to content

Commit c43b903

Browse files
committed
Modify fix slightly to correct the actual source of the issue
1 parent 86e42ab commit c43b903

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/html_parser.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class HtmlParser extends StatelessWidget {
6868
RenderContext(
6969
buildContext: context,
7070
parser: this,
71+
style: Style.fromTextStyle(Theme.of(context).textTheme.bodyText2),
7172
),
7273
cleanedTree,
7374
);
@@ -247,7 +248,7 @@ class HtmlParser extends StatelessWidget {
247248
RenderContext newContext = RenderContext(
248249
buildContext: context.buildContext,
249250
parser: this,
250-
style: context.style?.copyOnlyInherited(tree.style) ?? Style.fromTextStyle(Theme.of(context.buildContext).textTheme.bodyText2),
251+
style: context.style?.copyOnlyInherited(tree.style),
251252
);
252253

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

0 commit comments

Comments
 (0)