GetArch infrastructure package, get app environment information
本基础设施提供 IEnvInfoSource及其实现类
abstract class IEnvInfoSource {
Future<EnvInfo> getEnvInfo();
}
加载模块
Future<void> main() async {
WidgetsFlutterBinding.ensureInitialized();
await GetArchApplication.run(conf, printConfig: !kReleaseMode, packages: [
EnvInfoPackage(),
]);
runApp(MyApp());
}