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

@@ -57,7 +57,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
onPressed: appsProvider.apps.isEmpty || importInProgress
? null
: () {
HapticFeedback.lightImpact();
HapticFeedback.selectionClick();
appsProvider.exportApps().then((String path) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text('Exported to $path')),
@@ -72,7 +72,7 @@ class _ImportExportPageState extends State<ImportExportPage> {
onPressed: importInProgress
? null
: () {
HapticFeedback.lightImpact();
HapticFeedback.selectionClick();
FilePicker.platform.pickFiles().then((result) {
setState(() {
importInProgress = true;
@@ -291,7 +291,6 @@ class _ImportErrorDialogState extends State<ImportErrorDialog> {
actions: [
TextButton(
onPressed: () {
HapticFeedback.lightImpact();
Navigator.of(context).pop(null);
},
child: const Text('Okay'))