2023-08-23 03:55:33 +08:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
2023-09-02 21:29:06 +08:00
|
|
|
import 'home.dart';
|
|
|
|
import 'constants.dart';
|
|
|
|
|
2023-08-23 03:55:33 +08:00
|
|
|
void main() {
|
|
|
|
runApp(const MyApp());
|
|
|
|
}
|
|
|
|
|
2023-09-02 21:29:06 +08:00
|
|
|
class MyApp extends StatefulWidget {
|
2023-08-23 03:55:33 +08:00
|
|
|
const MyApp({super.key});
|
|
|
|
|
|
|
|
@override
|
2023-09-02 21:29:06 +08:00
|
|
|
State<MyApp> createState() => _MyAppState();
|
2023-08-23 03:55:33 +08:00
|
|
|
}
|
|
|
|
|
2023-09-02 21:29:06 +08:00
|
|
|
class _MyAppState extends State<MyApp> {
|
2023-08-23 03:55:33 +08:00
|
|
|
|
2023-09-02 21:29:06 +08:00
|
|
|
// This widget is the root of your application.
|
2023-08-23 03:55:33 +08:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2023-09-02 21:29:06 +08:00
|
|
|
return MaterialApp(
|
|
|
|
debugShowCheckedModeBanner: false,
|
|
|
|
// title: '',
|
|
|
|
themeMode: myThemeMode,
|
|
|
|
theme: ThemeData(
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
seedColor: mySeedColor,
|
|
|
|
brightness: Brightness.light,
|
2023-08-23 03:55:33 +08:00
|
|
|
),
|
2023-09-02 21:29:06 +08:00
|
|
|
useMaterial3: true,
|
|
|
|
),
|
|
|
|
darkTheme: ThemeData(
|
|
|
|
colorScheme: ColorScheme.fromSeed(
|
|
|
|
seedColor: mySeedColor,
|
|
|
|
brightness: Brightness.dark,
|
2023-08-23 03:55:33 +08:00
|
|
|
),
|
2023-09-02 21:29:06 +08:00
|
|
|
useMaterial3: true,
|
|
|
|
),
|
|
|
|
home: const MyHomePage(),
|
2023-08-23 03:55:33 +08:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|