feat: 三端抽屉重构 + 配色系统更新 + 后台管理页精调 + 键盘抬起组件
## 抽屉重构 - admin_drawer / doctor_drawer / health_drawer 三端抽屉全部重做 - drawer_shell 增强 ## 配色系统 - app_colors / app_module_visuals / app_theme 更新 - app.dart 启动流程调整 ## 后台管理页 - admin_doctors_page 大幅重构(+251) - admin_home / doctor_dashboard / doctor_reports / doctor_home / doctor_followups / doctor_settings 精调 ## 患者端 - home_page / chat_messages_view / medication_list / notification_center / remaining_pages / exercise_plan / device / diet / consultation 微调 ## 新增 - keyboard_lift.dart: 键盘抬起处理组件 - AGENTS.md: agent 指引文档 ## 其他 - api_client IP 适配 - app_future_view 增强 - data_providers 调整 - secondary_page_visuals_test 更新
This commit is contained in:
@@ -13,6 +13,7 @@ import '../../providers/auth_provider.dart';
|
||||
import '../../providers/chat_provider.dart';
|
||||
import '../../providers/data_providers.dart';
|
||||
import '../../widgets/health_drawer.dart';
|
||||
import '../../widgets/keyboard_lift.dart';
|
||||
import '../diet/diet_capture_page.dart';
|
||||
import 'widgets/chat_messages_view.dart';
|
||||
|
||||
@@ -151,6 +152,7 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
|
||||
return Scaffold(
|
||||
key: _scaffoldKey,
|
||||
resizeToAvoidBottomInset: false,
|
||||
backgroundColor: const Color(0xFFFFFCFF),
|
||||
drawer: const HealthDrawer(),
|
||||
drawerEnableOpenDragGesture: false,
|
||||
@@ -178,7 +180,7 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
),
|
||||
),
|
||||
),
|
||||
_buildBottomBar(context),
|
||||
KeyboardLift(child: _buildBottomBar(context)),
|
||||
],
|
||||
),
|
||||
),
|
||||
@@ -300,7 +302,11 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
gradient: visual.gradient,
|
||||
borderRadius: BorderRadius.circular(6),
|
||||
),
|
||||
child: Icon(visual.icon, size: 13, color: Colors.white),
|
||||
child: Icon(
|
||||
visual.icon,
|
||||
size: 13,
|
||||
color: visual.iconColor,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Text(
|
||||
@@ -321,9 +327,8 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
);
|
||||
}
|
||||
|
||||
({String label, IconData icon, LinearGradient gradient}) _agentVisual(
|
||||
ActiveAgent agent,
|
||||
) {
|
||||
({String label, IconData icon, LinearGradient gradient, Color iconColor})
|
||||
_agentVisual(ActiveAgent agent) {
|
||||
({String label, AppModuleVisual visual}) fromModule(
|
||||
String label,
|
||||
AppModuleVisual visual,
|
||||
@@ -342,6 +347,7 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
label: module.label,
|
||||
icon: module.visual.icon,
|
||||
gradient: module.visual.gradient,
|
||||
iconColor: Colors.white,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -350,11 +356,13 @@ class _HomePageState extends ConsumerState<HomePage>
|
||||
label: 'AI问诊',
|
||||
icon: LucideIcons.messageCircle,
|
||||
gradient: AppColors.doctorGradient,
|
||||
iconColor: Colors.white,
|
||||
),
|
||||
_ => (
|
||||
label: 'AI问诊',
|
||||
icon: LucideIcons.messageCircle,
|
||||
gradient: AppColors.primaryGradient,
|
||||
iconColor: Colors.white,
|
||||
),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user