From a748c316f29aebcd7dcc41137b7b56b76feb5423 Mon Sep 17 00:00:00 2001 From: MingNian <1281442923@qq.com> Date: Fri, 26 Jun 2026 19:32:28 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=E5=BA=9F=E5=BC=83?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=92=8C=20lint=20=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除旧的 _chip 方法(服药次数改用滚轮后遗留) - 移除多余的 ! 非空断言 --- .../doctor/doctor_report_detail_page.dart | 2 +- .../medication/medication_edit_page.dart | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) 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,