main.dart 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. import 'package:web_package/routes.dart';
  4. /// Description: enter point
  5. /// Time : 01/23/2024 Tuesday
  6. /// Author : liuyuqi.gov@msn.cn
  7. void main() {
  8. WidgetsFlutterBinding.ensureInitialized();
  9. runApp(const MyApp());
  10. SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
  11. statusBarColor: Colors.transparent,
  12. statusBarIconBrightness: Brightness.dark,
  13. systemNavigationBarColor: Colors.transparent,
  14. systemNavigationBarIconBrightness: Brightness.dark,
  15. ));
  16. }
  17. class MyApp extends StatelessWidget {
  18. const MyApp({super.key});
  19. // This widget is the root of your application.
  20. @override
  21. Widget build(BuildContext context) {
  22. return MaterialApp(
  23. title: 'web package',
  24. debugShowCheckedModeBanner: false,
  25. theme: ThemeData(
  26. colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
  27. useMaterial3: true,
  28. ),
  29. initialRoute: Routes.home,
  30. onGenerateRoute: Routes.onGenerateRoute,
  31. );
  32. }
  33. }