123456789101112131415161718192021222324 |
- import 'dart:io';
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:sport/config.dart';
- import 'package:sport/config_inject.dart';
- import 'app.dart';
- void main() {
- WidgetsFlutterBinding.ensureInitialized();
- SystemChrome.setPreferredOrientations([
- DeviceOrientation.portraitUp,
- ]);
- ConfigInject()..inject(Config.ENV_DEV);
- runApp(MyApp());
- // debugPaintSizeEnabled = true; //打开视觉调试开关
- if (Platform.isAndroid) {
- // GestureBinding.instance.resamplingEnabled = true;
- //设置Android头部的导航栏透明
- SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(statusBarColor: Colors.transparent));
- }
- }
|