set dark mode if necessary (works at android)

This commit is contained in:
DASHU
2025-09-02 00:15:04 +08:00
parent d8be34648b
commit 5daf067c1b
2 changed files with 7 additions and 0 deletions

View File

@@ -325,6 +325,7 @@ ThemeData getLightTheme() {
}
return ThemeData(
brightness: Brightness.light,
// platform: TargetPlatform.iOS,
primarySwatch: themeColor,
colorScheme: ColorScheme.fromSeed(
@@ -410,6 +411,7 @@ ThemeData getDarkTheme() {
}
return ThemeData(
brightness: Brightness.dark,
// platform: TargetPlatform.iOS,
primarySwatch: themeColor,
colorScheme: ColorScheme.fromSeed(