main.dart 802 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter/services.dart';
  3. import 'pages/home_page.dart';
  4. void main() {
  5. WidgetsFlutterBinding.ensureInitialized();
  6. runApp(MyApp());
  7. SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
  8. statusBarColor: Colors.transparent,
  9. statusBarIconBrightness: Brightness.dark,
  10. systemNavigationBarColor: Colors.transparent,
  11. systemNavigationBarIconBrightness: Brightness.dark,
  12. ));
  13. }
  14. class MyApp extends StatelessWidget {
  15. // This widget is the root of your application.
  16. @override
  17. Widget build(BuildContext context) {
  18. return MaterialApp(
  19. debugShowCheckedModeBanner: false,
  20. title: '南瓜五子棋',
  21. theme: ThemeData(
  22. primarySwatch: Colors.blue,
  23. ),
  24. home: HomePage(),
  25. );
  26. }
  27. }