main.dart 814 B

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