File tree Expand file tree Collapse file tree
packages/flutter_markdown Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ class MarkdownStyleSheet {
104104 p: theme.textTheme.bodyMedium,
105105 pPadding: EdgeInsets .zero,
106106 code: theme.textTheme.bodyMedium! .copyWith (
107+ backgroundColor: theme.cardTheme.color,
107108 fontFamily: 'monospace' ,
108109 fontSize: theme.textTheme.bodyMedium! .fontSize! * 0.85 ,
109110 ),
@@ -280,6 +281,7 @@ class MarkdownStyleSheet {
280281 p: theme.textTheme.bodyMedium,
281282 pPadding: EdgeInsets .zero,
282283 code: theme.textTheme.bodyMedium! .copyWith (
284+ backgroundColor: theme.cardTheme.color,
283285 fontFamily: 'monospace' ,
284286 fontSize: theme.textTheme.bodyMedium! .fontSize! * 0.85 ,
285287 ),
Original file line number Diff line number Diff line change @@ -150,6 +150,7 @@ void defineTests() {
150150 expect (
151151 style.code! .fontSize, theme.textTheme.bodyMedium! .fontSize! * 0.85 );
152152 expect (style.code! .fontFamily, 'monospace' );
153+ expect (style.code! .backgroundColor, theme.cardTheme.color);
153154
154155 // H1
155156 expect (style.h1, theme.textTheme.headlineSmall);
You can’t perform that action at this time.
0 commit comments