feat:增加日程模块
This commit is contained in:
@@ -14,7 +14,7 @@ class TaskHubApp extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return FluentApp(
|
||||
title: 'TaskHub - 待办清单',
|
||||
title: 'TaskHub',
|
||||
themeMode: ThemeMode.system,
|
||||
theme: FluentThemeData(
|
||||
fontFamily: 'CustomFont',
|
||||
@@ -38,22 +38,16 @@ class _MainLayoutState extends State<MainLayout> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return NavigationView(
|
||||
titleBar: TitleBar(
|
||||
icon: const FlutterLogo(),
|
||||
title: const Text('TaskHub')
|
||||
),
|
||||
pane: NavigationPane(
|
||||
selected: _currentIndex,
|
||||
onChanged: (index) => setState(() => _currentIndex = index),
|
||||
size: NavigationPaneSize(
|
||||
openWidth: 150
|
||||
),
|
||||
header: const Padding(
|
||||
padding: EdgeInsets.all(10),
|
||||
child: Text(
|
||||
'TaskHub',
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.bold,
|
||||
),
|
||||
),
|
||||
),
|
||||
items: [
|
||||
PaneItem(
|
||||
icon: const Icon(FluentIcons.home),
|
||||
|
||||
Reference in New Issue
Block a user