import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:web_package/routes.dart'; /// Description: enter point /// Time : 01/23/2024 Tuesday /// Author : liuyuqi.gov@msn.cn void main() { WidgetsFlutterBinding.ensureInitialized(); runApp(const MyApp()); SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle( statusBarColor: Colors.transparent, statusBarIconBrightness: Brightness.dark, systemNavigationBarColor: Colors.transparent, systemNavigationBarIconBrightness: Brightness.dark, )); } class MyApp extends StatelessWidget { const MyApp({super.key}); // This widget is the root of your application. @override Widget build(BuildContext context) { return MaterialApp( title: 'web package', debugShowCheckedModeBanner: false, theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), initialRoute: Routes.home, onGenerateRoute: Routes.onGenerateRoute, ); } }