Browse Source

放大可交互按钮

gavin.chen 1 year ago
parent
commit
3d9b5bedbc

+ 11 - 7
lib/components/appbar.dart

@@ -44,16 +44,20 @@ class VAppBar extends AppBar {
             );
           }),
           leadingWidth: 88,
-          leading: IconButton(
-            icon: const Icon(
-              Icons.arrow_back_ios_new,
-              size: 36,
-              color: Colors.white,
-            ),
-            onPressed: () {
+          leading: InkWell(
+            onTap: () {
               iconBack?.call();
               Get.back();
             },
+            child: SizedBox(
+              width: 88,
+              height: 60,
+              child: Icon(
+                Icons.arrow_back_ios_new,
+                size: 36,
+                color: Colors.white,
+              ),
+            ),
           ),
           centerTitle: true,
           titleTextStyle: const TextStyle(fontSize: 24),

+ 9 - 5
lib/pages/medical_checkup_station/registration/widgets/form/index.dart

@@ -197,11 +197,15 @@ class _RegistrationFormDialogState extends State<RegistrationFormDialog> {
               style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
             ),
           ),
-          IconButton(
-            onPressed: () => Get.back(),
-            icon: const Icon(
-              Icons.close,
-              size: 30,
+          InkWell(
+            onTap: () => Get.back(),
+            child: SizedBox(
+              width: 60,
+              height: 60,
+              child: const Icon(
+                Icons.close,
+                size: 30,
+              ),
             ),
           ),
         ],

+ 11 - 9
lib/pages/medical_checkup_station/registration/widgets/report/report_preview.dart

@@ -27,15 +27,17 @@ class ReportPreview extends StatelessWidget {
       child: Stack(
         children: [
           Positioned(
-            right: 16,
-            top: 16,
-            child: IconButton(
-              onPressed: () {
-                Get.back();
-              },
-              icon: Icon(
-                Icons.close,
-                size: 30,
+            top: 0,
+            right: 0,
+            child: InkWell(
+              onTap: () => Get.back(),
+              child: SizedBox(
+                width: 60,
+                height: 60,
+                child: Icon(
+                  Icons.close,
+                  size: 30,
+                ),
               ),
             ),
           ),

+ 2 - 2
lib/pages/settings/server/widgets/protocol_switch.dart

@@ -53,8 +53,8 @@ class _OptionWidget extends StatelessWidget {
     return GestureDetector(
       onTap: onTap,
       child: Container(
-        height: 32,
-        width: 80,
+        height: 60,
+        width: 90,
         alignment: Alignment.center,
         decoration: BoxDecoration(
           borderRadius: BorderRadius.circular(4),