mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
#12 new: custom theme mode
This commit is contained in:
@@ -29,4 +29,8 @@ class SettingStore extends PersistentStore {
|
||||
/// Max retry count when connect to server
|
||||
StoreProperty<int> get maxRetryCount =>
|
||||
property('maxRetryCount', defaultValue: 7);
|
||||
|
||||
/// Night mode: 0 -> auto, 1 -> light, 2 -> dark
|
||||
StoreProperty<int> get nightMode =>
|
||||
property('nightMode', defaultValue: ThemeMode.system.index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user