Used the new barcode_scan2 package instead (#559)

This commit is contained in:
Omar Hatem 2022-10-24 21:24:20 +02:00 committed by GitHub
parent ca36a425a7
commit fb8017a93c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,17 +1,15 @@
// import 'package:barcode_scan/barcode_scan.dart'; import 'package:barcode_scan2/barcode_scan2.dart';
var isQrScannerShown = false; var isQrScannerShown = false;
Future<String> presentQRScanner() async { Future<String> presentQRScanner() async {
isQrScannerShown = true; isQrScannerShown = true;
// FIX-ME: BarcodeScanner try {
throw Exception('Unimplemented'); final result = await BarcodeScanner.scan();
// try { isQrScannerShown = false;
// final result = await BarcodeScanner.scan(); return result.rawContent;
// isQrScannerShown = false; } catch (e) {
// return result.rawContent; isQrScannerShown = false;
// } catch (e) { rethrow;
// isQrScannerShown = false; }
// rethrow;
// }
} }