File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import 'text.dart';
9
9
/// Use [forSpan] for syntax highlighting.
10
10
// TODO(#749) follow web for dark-theme colors
11
11
class CodeBlockTextStyles {
12
- factory CodeBlockTextStyles (BuildContext context) {
12
+ factory CodeBlockTextStyles . light (BuildContext context) {
13
13
final bold = weightVariableTextStyle (context, wght: 700 );
14
14
return CodeBlockTextStyles ._(
15
15
plain: kMonospaceTextStyle
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class ContentTheme extends ThemeExtension<ContentTheme> {
48
48
)
49
49
.merge (weightVariableTextStyle (context))
50
50
.copyWith (debugLabel: 'ContentTheme.textStylePlainParagraph' ),
51
- codeBlockTextStyles = CodeBlockTextStyles (context),
51
+ codeBlockTextStyles = CodeBlockTextStyles . light (context),
52
52
textStyleError = const TextStyle (fontSize: kBaseFontSize, color: Colors .red)
53
53
.merge (weightVariableTextStyle (context, wght: 700 )),
54
54
textStyleErrorCode = kMonospaceTextStyle
You can’t perform that action at this time.
0 commit comments