1234567891011121314151617181920 |
- 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() {
- ConfigInject()..inject(Config.ENV_DEV);
- runApp(MyApp());
- // debugPaintSizeEnabled = true; //打开视觉调试开关
- if (Platform.isAndroid) {
- // GestureBinding.instance.resamplingEnabled = true;
- //设置Android头部的导航栏透明
- SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(statusBarColor: Colors.transparent));
- }
- }
|