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 637cd4b commit fd1190cCopy full SHA for fd1190c
1 file changed
lib/src/presentation/blocks/quote/quote_renderer.dart
@@ -17,12 +17,15 @@ class QuoteRenderer extends BlockRenderer<QuoteBlock> {
17
QuoteAlignment.left => TextAlign.left,
18
};
19
20
+ final baseStyles = HtmlStyleBuilder.build(styleConfig);
21
+ final baseBodyStyle = baseStyles['body'] ?? Style();
22
+ final mergedBodyStyle = baseBodyStyle.copyWith(
23
+ textAlign: align,
24
+ fontFamily: styleConfig?.defaultFont,
25
+ );
26
final styleMap = {
- ...HtmlStyleBuilder.build(styleConfig),
- 'body': Style(
- textAlign: align,
- fontFamily: styleConfig?.defaultFont,
- ),
27
+ ...baseStyles,
28
+ 'body': mergedBodyStyle,
29
30
31
return Container(
0 commit comments