Browse Source

fix 0017694: 【最近检测记录】选择居民自动跳转到健康档案后,最近检测记录区域显示灰屏(居民有或没有最近检测记录都有此问题)

Melon 1 year ago
parent
commit
04f91c5e30
2 changed files with 4 additions and 0 deletions
  1. 3 0
      lib/pages/patient/detail/widgets/last_record.dart
  2. 1 0
      lib/routes/routes.dart

+ 3 - 0
lib/pages/patient/detail/widgets/last_record.dart

@@ -28,6 +28,7 @@ class LastRecordTable extends StatelessWidget {
   }
 
   Widget _buildTable() {
+    final scrollController = ScrollController();
     return Column(
       children: [
         const SizedBox(
@@ -48,8 +49,10 @@ class LastRecordTable extends StatelessWidget {
         ),
         Expanded(
           child: Scrollbar(
+            controller: scrollController,
             thumbVisibility: true,
             child: SingleChildScrollView(
+              controller: scrollController,
               child: Table(
                 children: _buildRow(tableData),
               ),

+ 1 - 0
lib/routes/routes.dart

@@ -211,6 +211,7 @@ class Routes {
       () => const PatientDetailPage(),
       binding: BindingsBuilder(
         () {
+          Get.put(HealthCheckListController());
           Get.put(CrowdLabelsController());
           Get.put(PatientDetailController());
         },