1234567891011121314151617181920212223242526 |
- // @dart=2.9
- import 'dart:io';
- import 'package:flutter/gestures.dart';
- 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_RELEASE);
- runApp(MyApp());
- // debugPaintSizeEnabled = true; //打开视觉调试开关
- if (Platform.isAndroid) {
- // GestureBinding.instance.resamplingEnabled = true;
- //设置Android头部的导航栏透明
- SystemChrome.setSystemUIOverlayStyle(
- SystemUiOverlayStyle(statusBarColor: Colors.transparent));
- }
- }
|