main.dart 401 B

1234567891011121314
  1. import 'package:flutter/material.dart';
  2. import 'dart:io';
  3. import 'package:flutter/services.dart';
  4. import 'package:shuqi/app/app_scene.dart';
  5. void main() {
  6. runApp(MyApp());
  7. // 状态栏透明
  8. if (Platform.isAndroid) {
  9. SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
  10. SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  11. }
  12. }