You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
5
+
A universal AI barcode and QR code scanner for Flutter based on MLKit. Uses CameraX on Android, AVFoundation on iOS and Apple Vision & AVFoundation on macOS.
_This plugin is based on the [mobile_scanner](https://pub.dev/packages/mobile_scanner) plugin by [steenbakker.dev](https://pub.dev/publishers/steenbakker.dev/packages)._
20
+
21
+
_I recommend you to read the [mobile_scanner](https://pub.dev/packages/mobile_scanner) plugin's documentation._
22
+
23
+
24
+
18
25
### Android
19
26
SDK 21 and newer. Reason: CameraX requires at least SDK 21.
20
27
Also, make sure you upgrade kotlin to the latest version in your project.
@@ -61,15 +68,15 @@ If you don't set allowDuplicates to false, you can get multiple scans in a very
/// Example of using the barcode scanner with a controller.
71
-
BarcodeScanner(
72
-
controller: BarcodeScannerController(),
78
+
AiBarcodeScanner(
79
+
controller: MobileScannerController(),
73
80
onScan: (String value) {
74
81
debugPrint(value);
75
82
},
@@ -78,7 +85,7 @@ BarcodeScanner(
78
85
/// Example of using the barcode scanner with validation.
79
86
/// Validator works on the raw string, not the decoded value.
80
87
/// If you want to validate the scanner, use the [validateText] and [validateType] parameters.
81
-
BarcodeScanner(
88
+
AiBarcodeScanner(
82
89
validateText: 'https://',
83
90
validateType: ValidateType.startsWith,
84
91
controller: BarcodeScannerController(),
@@ -188,6 +195,6 @@ BarcodeScanner(
188
195
```
189
196
190
197
## Thanks to
191
-
This plugin is based on the[mobile_scanner](https://pub.dev/packages/mobile_scanner) plugin by [steenbakker.dev](https://pub.dev/publishers/steenbakker.dev/packages).
198
+
The[mobile_scanner](https://pub.dev/packages/mobile_scanner) plugin by [steenbakker.dev](https://pub.dev/publishers/steenbakker.dev/packages).
192
199
193
200
I recommend you to read the [mobile_scanner](https://pub.dev/packages/mobile_scanner) plugin's documentation.
0 commit comments