瀏覽代碼

修复用户反馈键盘问题

Groot 6 月之前
父節點
當前提交
b19b01b5fa
共有 1 個文件被更改,包括 47 次插入37 次删除
  1. 47 37
      lib/module/feedback/feed_back_page.dart

+ 47 - 37
lib/module/feedback/feed_back_page.dart

@@ -21,48 +21,58 @@ class FeedBackPage extends BasePage<FeedBackController> {
 
   @override
   Widget buildBody(BuildContext context) {
-    return Column(
-      crossAxisAlignment: CrossAxisAlignment.center,
+    return Stack(
       children: [
-        CommonView.buildAppBar(StringName.feedBack,
-            backOnTap: controller.back, titleCenter: false),
-        SizedBox(height: 12.w),
-        Align(
-          alignment: Alignment.centerLeft,
-          child: Padding(
-            padding: EdgeInsets.only(left: 14.w),
-            child: Text(StringName.feedBackTitle,
-                style: TextStyle(fontSize: 14.sp, color: '#202020'.color)),
-          ),
-        ),
-        SizedBox(height: 12.w),
-        buildFeedbackPrintView(),
-        Spacer(),
         GestureDetector(
-          onTap: controller.submit,
+          onTap: () => FocusScope.of(Get.context!).unfocus(),
           child: Container(
-            width: 240.w,
-            height: 50.w,
-            decoration: BoxDecoration(
-              color: ColorName.colorPrimary,
-              borderRadius: BorderRadius.circular(100.w),
-            ),
-            child: Center(
-              child: Text(StringName.feedBackSubmitTxt,
-                  style: TextStyle(fontSize: 16.sp, color: ColorName.white)),
-            ),
+            color: Colors.white,
           ),
         ),
-        SizedBox(height: 24.w),
-        GestureDetector(
-          onTap: controller.onCustomerServiceClick,
-          child: Text(StringName.feedBackCustomerService,
-              style: TextStyle(
-                  decoration: TextDecoration.underline,
-                  fontSize: 14.sp,
-                  color: ColorName.black)),
-        ),
-        Spacer(),
+        Column(
+          crossAxisAlignment: CrossAxisAlignment.center,
+          children: [
+            CommonView.buildAppBar(StringName.feedBack,
+                backOnTap: controller.back, titleCenter: false),
+            SizedBox(height: 12.w),
+            Align(
+              alignment: Alignment.centerLeft,
+              child: Padding(
+                padding: EdgeInsets.only(left: 14.w),
+                child: Text(StringName.feedBackTitle,
+                    style: TextStyle(fontSize: 14.sp, color: '#202020'.color)),
+              ),
+            ),
+            SizedBox(height: 12.w),
+            buildFeedbackPrintView(),
+            Spacer(),
+            GestureDetector(
+              onTap: controller.submit,
+              child: Container(
+                width: 240.w,
+                height: 50.w,
+                decoration: BoxDecoration(
+                  color: ColorName.colorPrimary,
+                  borderRadius: BorderRadius.circular(100.w),
+                ),
+                child: Center(
+                  child: Text(StringName.feedBackSubmitTxt,
+                      style: TextStyle(fontSize: 16.sp, color: ColorName.white)),
+                ),
+              ),
+            ),
+            SizedBox(height: 24.w),
+            GestureDetector(
+              onTap: controller.onCustomerServiceClick,
+              child: Text(StringName.feedBackCustomerService,
+                  style: TextStyle(
+                      decoration: TextDecoration.underline,
+                      fontSize: 14.sp,
+                      color: ColorName.black)),
+            ),
+            Spacer(),
+          ],
+        )
       ],
     );
   }