mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-18 02:04:18 +01:00
set dark mode if necessary (works at android)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user