12345678910111213141516171819202122232425262728293031323334353637383940 |
- import 'dart:io';
- import 'package:flutter/material.dart';
- import 'package:flutter/services.dart';
- import 'package:flutter_chinese_chees/pages/splash_page.dart';
- import 'package:flutter_chinese_chees/routes.dart';
- /// Description: enter point
- /// Time : 04/28/2023 Friday
- /// Author : liuyuqi.gov@msn.cn
- void main() async {
- WidgetsFlutterBinding.ensureInitialized();
- runApp(const MyApp());
- if (Platform.isAndroid) {
- SystemUiOverlayStyle systemUiOverlayStyle =
- const SystemUiOverlayStyle(statusBarColor: Colors.transparent);
- SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
- }
- }
- class MyApp extends StatelessWidget {
- const MyApp({super.key});
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: '中国象棋',
- debugShowCheckedModeBanner: false,
- theme: ThemeData(
- primarySwatch: Colors.blue,
- ),
- home: const SplashPage(),
- onGenerateRoute: Routes.onGenerateRoute,
- initialRoute: Routes.home,
- );
- }
- }
|