app.dart
931 Bytes
import 'package:fluro/fluro.dart';
import 'package:flutter/material.dart' hide Router;
import 'package:get_it/get_it.dart';
import 'package:shared_preferences/shared_preferences.dart';
import 'route/navigate_service.dart';
class App {
static late FluroRouter router;
static GlobalKey<NavigatorState> key = GlobalKey();
static SharedPreferences? sp;
static double? screenWidth;
static double? screenHeight;
static late double statusBarHeight;
static double? bottomBarHeight;
// static GetIt getIt = GetIt.instance;
static bool isInstallWx = false;
static bool isInstallWWork = false;
static final GlobalKey<NavigatorState> navigatorKey =
new GlobalKey<NavigatorState>();
static bool isShowDes = false; //权限使用目的
static initSp() async {
sp = await SharedPreferences.getInstance();
}
// static setupLocator() {
// getIt.registerSingleton(NavigateService());
// }
}