mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
28 lines
959 B
Dart
28 lines
959 B
Dart
import 'package:flutter/material.dart';
|
|
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: 3);
|
|
|
|
/// 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);
|
|
|
|
/// First time to use SSH term
|
|
StoreProperty<bool> get firstTimeUseSshTerm =>
|
|
property('firstTimeUseSshTerm', defaultValue: true);
|
|
|
|
StoreProperty<int> get termColorIdx => property('termColorIdx', defaultValue: 0);
|
|
}
|