Showing
1 changed file
with
4 additions
and
4 deletions
| @@ -76,7 +76,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -76,7 +76,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 76 | appBar: AppBar(title: const Text('Mobile Scanner')), | 76 | appBar: AppBar(title: const Text('Mobile Scanner')), |
| 77 | body: MobileScanner( | 77 | body: MobileScanner( |
| 78 | allowDuplicates: false, | 78 | allowDuplicates: false, |
| 79 | - onDetect: (barcode, args) { | 79 | + onDetect: (barcode) { |
| 80 | if (barcode.rawValue == null) { | 80 | if (barcode.rawValue == null) { |
| 81 | debugPrint('Failed to scan Barcode'); | 81 | debugPrint('Failed to scan Barcode'); |
| 82 | } else { | 82 | } else { |
| @@ -101,7 +101,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -101,7 +101,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 101 | allowDuplicates: false, | 101 | allowDuplicates: false, |
| 102 | controller: MobileScannerController( | 102 | controller: MobileScannerController( |
| 103 | facing: CameraFacing.front, torchEnabled: true), | 103 | facing: CameraFacing.front, torchEnabled: true), |
| 104 | - onDetect: (barcode, args) { | 104 | + onDetect: (barcode) { |
| 105 | if (barcode.rawValue == null) { | 105 | if (barcode.rawValue == null) { |
| 106 | debugPrint('Failed to scan Barcode'); | 106 | debugPrint('Failed to scan Barcode'); |
| 107 | } else { | 107 | } else { |
| @@ -163,7 +163,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -163,7 +163,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 163 | body: MobileScanner( | 163 | body: MobileScanner( |
| 164 | allowDuplicates: false, | 164 | allowDuplicates: false, |
| 165 | controller: cameraController, | 165 | controller: cameraController, |
| 166 | - onDetect: (barcode, args) { | 166 | + onDetect: (barcode) { |
| 167 | if (barcode.rawValue == null) { | 167 | if (barcode.rawValue == null) { |
| 168 | debugPrint('Failed to scan Barcode'); | 168 | debugPrint('Failed to scan Barcode'); |
| 169 | } else { | 169 | } else { |
| @@ -189,7 +189,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | @@ -189,7 +189,7 @@ import 'package:mobile_scanner/mobile_scanner.dart'; | ||
| 189 | torchEnabled: true, | 189 | torchEnabled: true, |
| 190 | returnImage: true, | 190 | returnImage: true, |
| 191 | ), | 191 | ), |
| 192 | - onDetect: (barcode, args) { | 192 | + onDetect: (barcode) { |
| 193 | if (barcode.rawValue == null) { | 193 | if (barcode.rawValue == null) { |
| 194 | debugPrint('Failed to scan Barcode'); | 194 | debugPrint('Failed to scan Barcode'); |
| 195 | } else { | 195 | } else { |
-
Please register or login to post a comment