From 1523d5153364476d47358adc5f1265de8d1d9f15 Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Sun, 5 Apr 2026 11:27:41 +0300 Subject: [PATCH] haptic added on qr scan. --- lib/helper/utils.dart | 2 +- lib/views/widgets/qr/asset_scan_qr.dart | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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]]);