forked from piaocbn2j/MTMusic
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
801 B
31 lines
801 B
11 months ago
|
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(),
|
||
|
);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|