feat:增加日程模块

This commit is contained in:
2026-04-26 14:23:32 +08:00
parent 57c6e552d4
commit 8f6e4cc23e
13 changed files with 905 additions and 518 deletions

View File

@@ -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),