main_dev.dart 611 B

1234567891011121314151617181920
  1. import 'dart:io';
  2. import 'package:flutter/gestures.dart';
  3. import 'package:flutter/material.dart';
  4. import 'package:flutter/services.dart';
  5. import 'package:sport/config.dart';
  6. import 'package:sport/config_inject.dart';
  7. import 'app.dart';
  8. void main() {
  9. ConfigInject()..inject(Config.ENV_DEV);
  10. runApp(MyApp());
  11. // debugPaintSizeEnabled = true; //打开视觉调试开关
  12. if (Platform.isAndroid) {
  13. // GestureBinding.instance.resamplingEnabled = true;
  14. //设置Android头部的导航栏透明
  15. SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(statusBarColor: Colors.transparent));
  16. }
  17. }