- import 'package:flutter/material.dart';
- import 'dart:io';
- import 'package:flutter/services.dart';
- import 'package:shuqi/app/app_scene.dart';
- void main() {
- runApp(MyApp());
- // 状态栏透明
- if (Platform.isAndroid) {
- SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent);
- SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
- }
- }
|