diff --git a/health_app/lib/pages/doctor/doctor_report_detail_page.dart b/health_app/lib/pages/doctor/doctor_report_detail_page.dart index 1f66170..31d0cc8 100644 --- a/health_app/lib/pages/doctor/doctor_report_detail_page.dart +++ b/health_app/lib/pages/doctor/doctor_report_detail_page.dart @@ -306,7 +306,7 @@ class _DoctorReportDetailPageState width: double.infinity, child: OutlinedButton.icon( onPressed: () { - pushRoute(ref, 'reportOriginal', params: {'url': fileUrl!, 'title': '原始报告'}); + pushRoute(ref, 'reportOriginal', params: {'url': fileUrl, 'title': '原始报告'}); }, icon: const Icon(Icons.visibility, size: 18), label: const Text('查看原始报告'), diff --git a/health_app/lib/pages/medication/medication_edit_page.dart b/health_app/lib/pages/medication/medication_edit_page.dart index c7462c8..5141300 100644 --- a/health_app/lib/pages/medication/medication_edit_page.dart +++ b/health_app/lib/pages/medication/medication_edit_page.dart @@ -308,25 +308,6 @@ class _MedicationEditPageState extends ConsumerState { ), ], ); - Widget _chip(String label, bool sel, VoidCallback onTap) => GestureDetector( - onTap: onTap, - child: Container( - padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 8), - decoration: BoxDecoration( - color: sel ? Colors.white : AppColors.cardInner, - borderRadius: BorderRadius.circular(16), - border: sel ? Border.all(color: AppColors.primary, width: 1.5) : null, - ), - child: Text( - label, - style: TextStyle( - fontSize: 16, - color: sel ? AppColors.primary : AppColors.textSecondary, - fontWeight: FontWeight.w500, - ), - ), - ), - ); Widget _dateField(String label, DateTime val, ValueChanged cb) => Column( crossAxisAlignment: CrossAxisAlignment.start,