浏览代码

Increase hit area for the "Skip" button (#1416)

Vishnu Mohandas 1 年之前
父节点
当前提交
9b81dde9e4
共有 1 个文件被更改,包括 11 次插入10 次删除
  1. 11 10
      lib/ui/settings/backup/backup_folder_selection_page.dart

+ 11 - 10
lib/ui/settings/backup/backup_folder_selection_page.dart

@@ -181,16 +181,17 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
                 ),
                 ),
               ),
               ),
               widget.isOnboarding
               widget.isOnboarding
-                  ? Padding(
-                      padding: EdgeInsets.only(
-                        top: 16,
-                        bottom: Platform.isIOS ? 48 : 32,
-                      ),
-                      child: GestureDetector(
-                        key: const ValueKey("skipBackupButton"),
-                        onTap: () {
-                          Navigator.of(context).pop();
-                        },
+                  ? GestureDetector(
+                      key: const ValueKey("skipBackupButton"),
+                      behavior: HitTestBehavior.opaque,
+                      onTap: () {
+                        Navigator.of(context).pop();
+                      },
+                      child: Padding(
+                        padding: EdgeInsets.only(
+                          top: 16,
+                          bottom: Platform.isIOS ? 48 : 32,
+                        ),
                         child: Text(
                         child: Text(
                           S.of(context).skip,
                           S.of(context).skip,
                           style:
                           style: