Pārlūkot izejas kodu

[new]首页增加高德地图授权说明

zk 2 mēneši atpakaļ
vecāks
revīzija
b3e56d23fb
1 mainītis faili ar 19 papildinājumiem un 14 dzēšanām
  1. 19 14
      lib/module/main/main_page.dart

+ 19 - 14
lib/module/main/main_page.dart

@@ -69,20 +69,25 @@ class MainPage extends BasePage<MainController> {
   }
 
   Widget buildMapLogoView() {
-    return Obx(() {
-      return Positioned(
-          left: 12.w,
-          bottom: 130.w + controller.sheetProgress * 146.w,
-          child: Column(
-            crossAxisAlignment: CrossAxisAlignment.start,
-            children: [
-              Assets.images.iconAmapLogo.image(height: 20.w),
-              Text(StringName.locationCo,
-                  style: TextStyle(
-                      fontSize: 9.sp, color: '#666666'.color, height: 1))
-            ],
-          ));
-    });
+    return Visibility(
+      visible: Platform.isAndroid,
+      child: Obx(() {
+        return Positioned(
+            left: 12.w,
+            bottom: 130.w +
+                (controller.lastSelectedGoods == null ? 0 : 60.w) +
+                controller.sheetProgress * 146.w,
+            child: Column(
+              crossAxisAlignment: CrossAxisAlignment.start,
+              children: [
+                Assets.images.iconAmapLogo.image(height: 20.w),
+                Text(StringName.locationCo,
+                    style: TextStyle(
+                        fontSize: 9.sp, color: '#666666'.color, height: 1))
+              ],
+            ));
+      }),
+    );
   }
 
   Widget buildMapView() {