Procházet zdrojové kódy

Increase hit area for the "Skip" button

Vishnu Mohandas před 1 rokem
rodič
revize
85527125bb

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

@@ -181,16 +181,17 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
                 ),
               ),
               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(
                           S.of(context).skip,
                           style: