From 14e69730b0b8e94b05aec192abd6b0a65c56a0a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=A8=87?= Date: Mon, 26 Feb 2024 17:48:18 +0800 Subject: [PATCH] fix windows UI problem, credit: @ChenDoXiu https://github.com/flutter/flutter/issues/103811#issuecomment-1849033360 --- lib/main.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/main.dart b/lib/main.dart index 9bdc68c..174d28b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -48,6 +48,7 @@ class RenamerApp extends StatelessWidget { locale: _appLocale, debugShowCheckedModeBanner: false, theme: ThemeData( + fontFamily: Platform.isWindows ? "微软雅黑" : null, colorScheme: ColorScheme.fromSeed( brightness: Brightness.light, seedColor: const Color(0xff9cdce8), @@ -62,6 +63,7 @@ class RenamerApp extends StatelessWidget { ], ), darkTheme: ThemeData( + fontFamily: Platform.isWindows ? "微软雅黑" : null, colorScheme: ColorScheme.fromSeed( brightness: Brightness.dark, seedColor: const Color(0xff26546e),