Parcourir la source

修复点击会员页未登陆时点击登录按钮无响应

Groot il y a 6 mois
Parent
commit
0aeb69e633
1 fichiers modifiés avec 29 ajouts et 17 suppressions
  1. 29 17
      lib/module/member/member_page.dart

+ 29 - 17
lib/module/member/member_page.dart

@@ -385,24 +385,36 @@ class MemberPage extends BasePage<MemberController> {
 
   Widget buildHeadBar() {
     return Obx(() {
-      return Container(
-        color: ColorName.colorPrimary.withOpacity(controller.toolBarOpacity),
-        child: SafeArea(
-          child: SizedBox(
-            width: double.infinity,
-            height: 56.w,
-            child: Stack(alignment: Alignment.center, children: [
-              Positioned(
-                  left: 12.w,
-                  child: GestureDetector(
-                    onTap: () => controller.onPopBack(),
-                    child: Assets.images.iconWhiteBack
-                        .image(width: 24.w, height: 24.w),
-                  )),
-              Container(child: buildVerticalSlideshowWidget())
-            ]),
+      return Stack(
+        children: [
+          IgnorePointer(
+            child: Container(
+              color: ColorName.colorPrimary.withOpacity(controller.toolBarOpacity),
+              child: SafeArea(
+                child: SizedBox(
+                  width: double.infinity,
+                  height: 56.w,
+                ),
+              ),
+            ),
           ),
-        ),
+          SafeArea(
+            child: SizedBox(
+              width: double.infinity,
+              height: 56.w,
+              child: Stack(alignment: Alignment.center, children: [
+                Positioned(
+                    left: 12.w,
+                    child: GestureDetector(
+                      onTap: () => controller.onPopBack(),
+                      child: Assets.images.iconWhiteBack
+                          .image(width: 24.w, height: 24.w),
+                    )),
+                Container(child: buildVerticalSlideshowWidget())
+              ]),
+            ),
+          ),
+        ],
       );
     });
   }