import 'package:flutter/material.dart'; import 'package:music_player_miao/common_widget/app_data.dart'; import 'package:music_player_miao/view/splash_view.dart'; import 'package:get/get.dart'; import 'dart:io'; import 'package:flutter/services.dart'; void main(){ WidgetsFlutterBinding.ensureInitialized(); Get.put(AppData()); runApp( const MyApp()); if (Platform.isAndroid) { SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(statusBarColor: Colors.transparent); SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dark); } } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return const GetMaterialApp( debugShowCheckedModeBanner: false, home: SplashView(), ); } }