From d432f08dc67a62c0730aa033d3952d9df5bd5aac Mon Sep 17 00:00:00 2001 From: Muhammed Ayimen Date: Sun, 12 Nov 2023 12:16:03 +0900 Subject: [PATCH] Added: Vibration effect, when google auth Qr code scanning is successfull --- lib/ui/settings/data/import/analyze_qr_code.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ui/settings/data/import/analyze_qr_code.dart b/lib/ui/settings/data/import/analyze_qr_code.dart index 430c308fc..8c64c71ad 100644 --- a/lib/ui/settings/data/import/analyze_qr_code.dart +++ b/lib/ui/settings/data/import/analyze_qr_code.dart @@ -9,6 +9,7 @@ import 'package:ente_auth/ui/settings/data/import/google_auth_image_import.dart' import 'package:ente_auth/ui/settings/data/import/qr_scanner_overlay.dart'; import 'package:ente_auth/utils/toast_util.dart'; import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:flutter_svg/svg.dart'; import 'package:mobile_scanner/mobile_scanner.dart'; import 'package:wechat_assets_picker/wechat_assets_picker.dart'; @@ -46,6 +47,7 @@ class _QrScannerState extends State { isNavigationPerformed = true; if (capture.barcodes[0].rawValue! .startsWith(kGoogleAuthExportPrefix)) { + HapticFeedback.vibrate(); List codes = parseGoogleAuth(capture.barcodes[0].rawValue!); scannerController.dispose();