mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-08 17:25:30 +01:00
fix: desktop init
This commit is contained in:
@@ -8,4 +8,4 @@ final class Range<T extends num> {
|
||||
|
||||
@override
|
||||
String toString() => 'Range($start, $end)';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
class BuildData {
|
||||
static const String name = "ServerBox";
|
||||
static const int build = 831;
|
||||
static const int build = 843;
|
||||
static const String engine = "3.19.5";
|
||||
static const String buildAt = "2024-03-31 15:42:28";
|
||||
static const String buildAt = "2024-04-08 23:44:39";
|
||||
static const int modifications = 4;
|
||||
static const int script = 42;
|
||||
static const int script = 44;
|
||||
}
|
||||
|
||||
@@ -75,11 +75,11 @@ void _runInZone(void Function() body) {
|
||||
|
||||
Future<void> _initApp() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await _initDesktopWindow();
|
||||
|
||||
// Base of all data.
|
||||
await _initDb();
|
||||
await setupLocator();
|
||||
await _initDesktopWindow();
|
||||
Computer.shared.turnOn(
|
||||
// Plus 1 to avoid 0.
|
||||
workersCount: (Stores.server.box.keys.length / 3).round() + 1,
|
||||
|
||||
@@ -856,9 +856,7 @@ class _SettingPageState extends State<SettingPage> {
|
||||
);
|
||||
}
|
||||
|
||||
void _showFontSizeDialog(
|
||||
StorePropertyBase<double> property,
|
||||
) {
|
||||
void _showFontSizeDialog(StorePropertyBase<double> property) {
|
||||
final ctrller = TextEditingController(text: property.fetch().toString());
|
||||
void onSave() {
|
||||
context.pop();
|
||||
|
||||
Reference in New Issue
Block a user