fix(mobile): only toggle backup from the switch, not the whole row (#29236)

tapping anywhere on the enable backup row flipped backup on or off, so it was easy to toggle by accident. now only the switch does it.
This commit is contained in:
Santo Shakil 2026-06-26 20:30:08 +06:00 committed by GitHub
parent d85e599ad9
commit 29949bebe4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,12 +106,6 @@ class BackupToggleButtonState extends ConsumerState<BackupToggleButton> with Sin
borderRadius: const BorderRadius.all(Radius.circular(18.5)),
color: context.colorScheme.surfaceContainerLow,
),
child: Material(
color: context.colorScheme.surfaceContainerLow,
borderRadius: const BorderRadius.all(Radius.circular(20.5)),
child: InkWell(
borderRadius: const BorderRadius.all(Radius.circular(20.5)),
onTap: () => _onToggle(!_isEnabled),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 16),
child: Row(
@ -166,8 +160,6 @@ class BackupToggleButtonState extends ConsumerState<BackupToggleButton> with Sin
),
),
),
),
),
);
},
);