Skip to content

Commit 092aa44

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 8918975 commit 092aa44

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
@@ -639,4 +639,8 @@ InlineSpan _errorUnimplemented(UnimplementedNode node) {
639639

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

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

0 commit comments

Comments
 (0)