fix: add monospace filter for code fonts
This commit is contained in:
parent
0a28311797
commit
55f3f6a713
|
@ -10,7 +10,20 @@ class CodeModel with ChangeNotifier {
|
|||
static const fontSizes = [12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
static final fontFamilies = [
|
||||
'System',
|
||||
...GoogleFonts.asMap().keys,
|
||||
|
||||
// https://fonts.google.com/?category=Monospace
|
||||
...GoogleFonts.asMap().keys.where((element) =>
|
||||
element.endsWith('Mono') ||
|
||||
[
|
||||
'Inconsolata',
|
||||
'Source Code Pro',
|
||||
'Nanum Gothic Coding',
|
||||
'Cousine',
|
||||
'Anonymous Pro',
|
||||
'Courier Prime',
|
||||
'VT323',
|
||||
'Fira Code'
|
||||
].contains(element)),
|
||||
];
|
||||
|
||||
String _theme = 'vs';
|
||||
|
|
Loading…
Reference in New Issue