You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
750 B
29 lines
750 B
import 'package:flutter/material.dart';
|
|
import 'package:timemanage/screen/dashboard_screen.dart';
|
|
|
|
void main() => runApp(const MyApp());
|
|
|
|
class MyApp extends StatelessWidget {
|
|
const MyApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
// 此处放所有组件的主题颜色设置
|
|
theme: ThemeData(
|
|
menuBarTheme: MenuBarThemeData(
|
|
style: MenuStyle(
|
|
backgroundColor: MaterialStatePropertyAll<Color>(Colors.blueAccent),
|
|
),
|
|
),
|
|
menuTheme: MenuThemeData(
|
|
style: MenuStyle(
|
|
backgroundColor: MaterialStatePropertyAll<Color>(Colors.white)),
|
|
),
|
|
),
|
|
// 主页
|
|
home: DashBoardScreen(),
|
|
);
|
|
}
|
|
}
|