mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2025-02-06 06:44:27 +08:00
feat: fix debug crash
This commit is contained in:
parent
5a6ea3acad
commit
24313ab3b8
@ -1,6 +1,7 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:fluent_ui/fluent_ui.dart';
|
import 'package:fluent_ui/fluent_ui.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter_hooks/flutter_hooks.dart';
|
import 'package:flutter_hooks/flutter_hooks.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:hive/hive.dart';
|
import 'package:hive/hive.dart';
|
||||||
@ -75,7 +76,8 @@ class SplashUI extends HookConsumerWidget {
|
|||||||
await _showAlert(context, appConf);
|
await _showAlert(context, appConf);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await URLConf.checkHost();
|
// crash on debug mode, why?
|
||||||
|
if (!kDebugMode) await URLConf.checkHost();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
dPrint("checkHost Error:$e");
|
dPrint("checkHost Error:$e");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user