This commit is contained in:
wgh19
2024-05-31 19:58:06 +08:00
parent fd63b02b60
commit 61c6ed0e1b

View File

@@ -48,6 +48,7 @@ class _App {
init() async { init() async {
cachePath = (await getApplicationCacheDirectory()).path; cachePath = (await getApplicationCacheDirectory()).path;
dataPath = (await getApplicationSupportDirectory()).path; dataPath = (await getApplicationSupportDirectory()).path;
if (App.isWindows) {
final deviceInfoPlugin = DeviceInfoPlugin(); final deviceInfoPlugin = DeviceInfoPlugin();
final deviceInfo = await deviceInfoPlugin.windowsInfo; final deviceInfo = await deviceInfoPlugin.windowsInfo;
if (deviceInfo.majorVersion <= 6) { if (deviceInfo.majorVersion <= 6) {
@@ -62,6 +63,7 @@ class _App {
_windowsVersion = 11; _windowsVersion = 11;
} }
} }
}
final rootNavigatorKey = GlobalKey<NavigatorState>(); final rootNavigatorKey = GlobalKey<NavigatorState>();