#12 new: custom theme mode

This commit is contained in:
lollipopkit
2023-02-25 19:58:37 +08:00
parent 69fae4dd21
commit 5666a23e00
43 changed files with 403 additions and 2609 deletions

View File

@@ -2,8 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 225;
static const String engine = "Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 9944297138 (9 days ago) • 2023-02-08 15:46:04 -0800\nEngine • revision 248290d6d5\nTools • Dart 2.19.2 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-18 13:22:17.786805";
static const int modifications = 3;
static const int build = 227;
static const String engine =
"Flutter 3.7.3 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision 9944297138 (2 weeks ago) • 2023-02-08 15:46:04 -0800\nEngine • revision 248290d6d5\nTools • Dart 2.19.2 • DevTools 2.20.1\n";
static const String buildAt = "2023-02-25 18:23:00.718232";
static const int modifications = 13;
}

View File

@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/l10n.dart';
import '../../generated/l10n.dart';
import '../../view/widget/dropdown_menu.dart';
class ServerTabMenuItems {

View File

@@ -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);
}