Files
flutter_first_station/lib/main.dart
2023-05-17 09:18:42 +08:00

44 lines
1.2 KiB
Dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'counter/counter_page.dart';
import 'guess/guess_page.dart';
import 'muyu/muyu_page.dart';
import 'navigation/app_navigation.dart';
import 'paper/paper.dart';
import 'storage/db_storage/db_storage.dart';
void main() async{
WidgetsFlutterBinding.ensureInitialized();
await DbStorage.instance.open();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
appBarTheme: const AppBarTheme(
elevation: 0,
centerTitle: true,
systemOverlayStyle: SystemUiOverlayStyle(
statusBarIconBrightness: Brightness.dark,
statusBarColor: Colors.transparent,
),
backgroundColor: Colors.white,
titleTextStyle: TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.bold),
iconTheme: IconThemeData(color: Colors.black),
)
),
home: const AppNavigation(),
);
}
}