feat. & opt.

switch for distribution logo
opt. for server detail page
This commit is contained in:
lollipopkit
2023-01-27 21:46:52 +08:00
parent 7c6649f941
commit b6ab4b7fde
19 changed files with 146 additions and 107 deletions

View File

@@ -1 +1 @@
enum PkgManager { apt, yum, zypper, pacman, opkg }
enum PkgManager { apt, yum, zypper, pacman, opkg }

View File

@@ -8,7 +8,6 @@ enum Dist {
wrt,
armbian,
arch,
/// Rocky Linux
rocky;
String? get iconPath {

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 176;
static const int build = 183;
static const String engine =
"Flutter 3.3.9 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b8f7f1f986 (7 weeks ago) • 2022-11-23 06:43:51 +0900\nEngine • revision 8f2221fbef\nTools • Dart 2.18.5 • DevTools 2.15.0\n";
static const String buildAt = "2023-01-09 13:53:02.523811";
static const int modifications = 0;
"Flutter 3.7.0 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision b06b8b2710 (4 days ago) • 2023-01-23 16:55:55 -0800\nEngine • revision b24591ed32\nTools • Dart 2.19.0 • DevTools 2.20.1\n";
static const String buildAt = "2023-01-27 21:38:08.181334";
static const int modifications = 19;
}

View File

@@ -18,4 +18,4 @@ class DynamicColor {
}
final mainColor = DynamicColor(Colors.black87, Colors.white70);
final progressColor = DynamicColor(Colors.grey.shade100, Colors.grey);
final progressColor = DynamicColor(Colors.grey.shade100, Colors.white10);

View File

@@ -3,5 +3,7 @@ import 'package:flutter/material.dart';
const textSize18 = TextStyle(fontSize: 18);
const textSize11 = TextStyle(fontSize: 11);
const textSize13 = TextStyle(fontSize: 13);
const textSize13Grey = TextStyle(color: Colors.grey, fontSize: 13);
const textSize27 = TextStyle(fontSize: 27);
const grey = TextStyle(color: Colors.grey);

View File

@@ -4,10 +4,18 @@ import 'package:toolbox/core/persistant_store.dart';
class SettingStore extends PersistentStore {
StoreProperty<int> get primaryColor =>
property('primaryColor', defaultValue: Colors.deepPurpleAccent.value);
StoreProperty<int> get serverStatusUpdateInterval =>
property('serverStatusUpdateInterval', defaultValue: 5);
/// Lanch page idx
StoreProperty<int> get launchPage => property('launchPage', defaultValue: 0);
/// Version of store db
StoreProperty<int> get storeVersion =>
property('storeVersion', defaultValue: 0);
/// Show logo on server detail page
StoreProperty<bool> get showDistLogo =>
property('showDistLogo', defaultValue: true);
}