mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-18 07:44:26 +01:00
opt. for docker & apt
This commit is contained in:
11
lib/data/store/docker.dart
Normal file
11
lib/data/store/docker.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
import 'package:toolbox/core/persistant_store.dart';
|
||||
|
||||
class DockerStore extends PersistentStore {
|
||||
String? getDockerHost(String id) {
|
||||
return box.get(id);
|
||||
}
|
||||
|
||||
void setDockerHost(String id, String host) {
|
||||
box.put(id, host);
|
||||
}
|
||||
}
|
||||
@@ -5,7 +5,7 @@ class SettingStore extends PersistentStore {
|
||||
StoreProperty<int> get primaryColor =>
|
||||
property('primaryColor', defaultValue: Colors.deepPurpleAccent.value);
|
||||
StoreProperty<int> get serverStatusUpdateInterval =>
|
||||
property('serverStatusUpdateInterval', defaultValue: 2);
|
||||
property('serverStatusUpdateInterval', defaultValue: 5);
|
||||
StoreProperty<int> get launchPage => property('launchPage', defaultValue: 0);
|
||||
|
||||
StoreProperty<int> get storeVersion =>
|
||||
|
||||
Reference in New Issue
Block a user