Fix font problem on Linux ARM64 (#231)

This commit is contained in:
shenmo
2025-02-27 23:04:36 +08:00
committed by GitHub
parent 4640831e69
commit de98dfaa1b

View File

@@ -152,6 +152,17 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
'sans-serif' 'sans-serif'
]; ];
} }
if (App.isLinux) {
font = 'Noto Sans CJK';
fallback = [
'Segoe UI',
'Microsoft YaHei',
'PingFang SC',
'Noto Sans CJK',
'Arial',
'sans-serif'
];
}
return ThemeData( return ThemeData(
colorScheme: SeedColorScheme.fromSeeds( colorScheme: SeedColorScheme.fromSeeds(
primaryKey: primary, primaryKey: primary,