diff --git a/lib/helper/utils.dart b/lib/helper/utils.dart index 55d40f74..7b97e5c4 100644 --- a/lib/helper/utils.dart +++ b/lib/helper/utils.dart @@ -83,7 +83,7 @@ class Utils { static void hapticFeedback() async { bool canVibrate = await Vibrate.canVibrate; if (canVibrate) { - Vibrate.feedback(FeedbackType.medium); + Vibrate.feedback(FeedbackType.heavy); } } diff --git a/lib/views/widgets/qr/asset_scan_qr.dart b/lib/views/widgets/qr/asset_scan_qr.dart index 10313de5..b35b085d 100644 --- a/lib/views/widgets/qr/asset_scan_qr.dart +++ b/lib/views/widgets/qr/asset_scan_qr.dart @@ -139,6 +139,7 @@ class _AssetScanQrState extends State { setState(() { _scanning = false; }); + Utils.hapticFeedback(); if (result.isNotEmpty) { if (widget.multiSelection) { @@ -182,7 +183,7 @@ class _AssetScanQrState extends State { setState(() { _scanning = false; }); - + Utils.hapticFeedback(); if (result.isNotEmpty) { if (widget.multiSelection) { Navigator.of(context).pop([result[0]]);