Browse Source

修复孕产妇随访二维码太小

loki.wu 1 year ago
parent
commit
9140d39222
1 changed files with 22 additions and 28 deletions
  1. 22 28
      lib/pages/check/maternal_health_management/view.dart

+ 22 - 28
lib/pages/check/maternal_health_management/view.dart

@@ -442,35 +442,29 @@ class MaternalHealthManagement
 
   ///二维码
   Widget _buildQrcode(List<Map<String, dynamic>> qrCodes) {
-    final scrollController = ScrollController();
-    return AlwaysScrollListView(
-      scrollController: scrollController,
-      child: ListView(
-        controller: scrollController,
-        children: [
-          Center(
-            child: Wrap(
-              spacing: 80,
-              runSpacing: 20,
-              children: qrCodes
-                  .map(
-                    (e) => VQRCodeWithLogo(
-                      e["previewUrl"],
-                      codeStatement: PrescriptionFormKeys
-                          .AllPregnantWomenFormKeys[e["key"]],
-                      operationStatement: "复制链接",
-                      size: 150,
-                      operationSuccessCallback: () {
-                        PromptBox.toast("复制成功");
-                      },
-                    ),
-                  )
-                  .toList(),
-            ),
-          ),
-        ],
+    return SingleChildScrollView(
+      child: Align(
+        alignment: Alignment.center,
+        child: Wrap(
+          spacing: 80,
+          runSpacing: 5,
+          children: qrCodes
+              .map(
+                (e) => VQRCodeWithLogo(
+                  e["previewUrl"],
+                  codeStatement:
+                      PrescriptionFormKeys.AllPregnantWomenFormKeys[e["key"]],
+                  operationStatement: "复制链接",
+                  size: 260,
+                  titleWidth: 270,
+                  operationSuccessCallback: () {
+                    PromptBox.toast("复制成功");
+                  },
+                ),
+              )
+              .toList(),
+        ),
       ),
     );
-    ;
   }
 }