main.dart 932 B

123456789101112131415161718192021222324252627282930313233
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. import 'package:gobang/pages/splash/splash_page.dart';
  4. /// Description: enter point
  5. /// Time : 02/21/2024 Wednesday
  6. /// Author : liuyuqi.gov@msn.cn
  7. void main() {
  8. WidgetsFlutterBinding.ensureInitialized();
  9. runApp(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. // This widget is the root of your application.
  19. @override
  20. Widget build(BuildContext context) {
  21. return MaterialApp(
  22. debugShowCheckedModeBanner: false,
  23. title: '南瓜五子棋',
  24. theme: ThemeData(
  25. primarySwatch: Colors.blue,
  26. ),
  27. home: SpalshPage(),
  28. );
  29. }
  30. }