Reduced haptic feedback (consequential actions only)

This commit is contained in:
Imran Remtulla
2022-09-17 16:48:42 -04:00
parent c724b276ab
commit 0f6b6253de
7 changed files with 10 additions and 15 deletions

View File

@@ -339,13 +339,12 @@ class _APKPickerState extends State<APKPicker> {
actions: [
TextButton(
onPressed: () {
HapticFeedback.lightImpact();
Navigator.of(context).pop(null);
},
child: const Text('Cancel')),
TextButton(
onPressed: () {
HapticFeedback.heavyImpact();
HapticFeedback.selectionClick();
Navigator.of(context).pop(apkUrl);
},
child: const Text('Continue'))
@@ -376,13 +375,12 @@ class _APKOriginWarningDialogState extends State<APKOriginWarningDialog> {
actions: [
TextButton(
onPressed: () {
HapticFeedback.lightImpact();
Navigator.of(context).pop(null);
},
child: const Text('Cancel')),
TextButton(
onPressed: () {
HapticFeedback.heavyImpact();
HapticFeedback.selectionClick();
Navigator.of(context).pop(true);
},
child: const Text('Continue'))