fix: 侧边栏新增功能入口(报告/日历/饮食/复查)

健康概览和历史对话之间增加:
- 报告管理 → reports 路由
- 健康日历 → calendar 路由
- 饮食记录 → dietRecords 路由
- 复查随访 → followups 路由
This commit is contained in:
MingNian
2026-06-03 14:33:25 +08:00
parent ed716654b3
commit 0e49b9a952

View File

@@ -66,6 +66,15 @@ class HealthDrawer extends ConsumerWidget {
]), ]),
), ),
const Divider(),
Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),
child: Text('功能', style: Theme.of(context).textTheme.labelMedium!.copyWith(fontWeight: FontWeight.w600)),
),
_DrawerItem(icon: Icons.description, label: '报告管理', onTap: () => pushRoute(ref, 'reports')),
_DrawerItem(icon: Icons.calendar_today, label: '健康日历', onTap: () => pushRoute(ref, 'calendar')),
_DrawerItem(icon: Icons.restaurant, label: '饮食记录', onTap: () => pushRoute(ref, 'dietRecords')),
_DrawerItem(icon: Icons.event_note, label: '复查随访', onTap: () => pushRoute(ref, 'followups')),
const Divider(), const Divider(),
Padding( Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8), padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 8),