Skip to content

Commit 8395f1c

Browse files
committed
content: Have errorCodeStyle ask for "Source Code Pro"
Like in the other places we ask for a monospace font. (The exact choice of font isn't actually important here; the text is just for displaying what message-content elements we haven't implemented yet. But we're about to define a TextStyle constant to encapsulate reasonable font-family fallbacks for a monospace font, and it'll be convenient to use that constant here too. It'll use "Source Code Pro" as its first choice.)
1 parent cb9f206 commit 8395f1c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/widgets/content.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,8 @@ InlineSpan _errorUnimplemented(UnimplementedNode node) {
641641

642642
const errorStyle = TextStyle(fontWeight: FontWeight.bold, color: Colors.red);
643643

644-
const errorCodeStyle = TextStyle(color: Colors.red, fontFamily: 'monospace');
644+
const errorCodeStyle = TextStyle(
645+
color: Colors.red,
646+
fontFamily: "Source Code Pro", // TODO supply font
647+
fontFamilyFallback: ["monospace"],
648+
);

0 commit comments

Comments
 (0)