Просмотр исходного кода

[modify]优化首页-缩略图-扩大每日轨迹入口热区

zk 6 месяцев назад
Родитель
Сommit
af7201d1ee
1 измененных файлов с 13 добавлено и 1 удалено
  1. 13 1
      lib/module/main/main_page.dart

+ 13 - 1
lib/module/main/main_page.dart

@@ -217,7 +217,19 @@ class MainPage extends BasePage<MainController> {
           margin: EdgeInsets.only(bottom: 3.w, top: 3.w),
           child: AspectRatio(
             aspectRatio: 1,
-            child: buildTodayMapView(todayTrackReportBean),
+            child: Stack(
+              children: [
+                buildTodayMapView(todayTrackReportBean),
+                GestureDetector(
+                  behavior: HitTestBehavior.opaque,
+                  onTap: controller.onTodayTraceClick,
+                  child: SizedBox(
+                    width: double.infinity,
+                    height: double.infinity,
+                  ),
+                )
+              ],
+            ),
           ),
         ),
         SizedBox(width: 10.w),