A universal scanner for Flutter based on MLKit. Uses CameraX on Android and AVFoundation on iOS.
BSD-3-CLAUSE License
Bot releases are visible (Hide)
Published by juliansteenbakker over 1 year ago
Bugs fixed:
Published by juliansteenbakker over 1 year ago
Improvements:
Published by juliansteenbakker over 1 year ago
This big release contains all improvements from the beta releases.
In addition to that, this release contains:
Improvements:
Published by juliansteenbakker almost 2 years ago
Fixes:
Features:
errorBuilder
to the MobileScanner
widget that can be used to customize the error state of the preview. (Thanks @navaronbracke !)Published by juliansteenbakker almost 2 years ago
Special thanks to p-mazhnik, navaronbracke and WenheLI for the code improvements and new features!
Deprecated:
onStart
method has been renamed to onScannerStarted
.onPermissionSet
argument of the MobileScannerController
is now deprecated.Breaking changes:
MobileScannerException
now uses an errorCode
instead of a message
.MobileScannerException
now contains additional details from the original error.MobileScannerController.start()
to throw MobileScannerException
sMobileScannerController.start()
.autoResume
attribute has been removed from the MobileScanner
widget.MobileScannerCallback
and MobileScannerArgumentsCallback
typedef.jsqr
library with zxing-js
for full barcode support.Improvements:
called stop while already stopped
messages.Features:
scanWindow
to the MobileScanner()
widget.placeholderBuilder
function to the MobileScanner
widget to customize the preview placeholder.autoStart
parameter to MobileScannerController(). If set to false, controller won't start automatically.hasTorch
function on MobileScannerController(). After starting the controller, you can check if the device has a torch.torchEnabled
parameter from MobileScannerController() on iOSWebBarcodeReaderBase
class and changing barCodeReader
property in MobileScannerWebPlugin
Fixes:
MobileScannerController.stop()
throwing when already stopped.MobileScannerController.toggleTorch()
throwing if the device has no torch.MobileScanner
would keep listening to the barcode events.MobileScanner
preview depending on all attributes of MediaQueryData
.Published by juliansteenbakker almost 2 years ago
Upgraded GoogleMLKit/BarcodeScanning pod on iOS from 2.6.0 to 3.2.0.
Migrated to stable version of androidx.camera for Android.
Please checkout version 3.0.0-beta.2 for the latest features.
Published by juliansteenbakker almost 2 years ago
Breaking changes:
Features:
Other improvements:
Published by juliansteenbakker about 2 years ago
Breaking changes:
Features:
Other changes:
Published by juliansteenbakker over 2 years ago
This version uses the MLKit play-services model on Android in order to save space.
With the example app, this version reduces the release version from 14.9MB to 7MB.
More information: https://developers.google.com/ml-kit/vision/barcode-scanning/android
Published by juliansteenbakker over 2 years ago
Breaking changes: This version is only compatible with flutter 3.0.0 and later.
Published by juliansteenbakker over 2 years ago
This version uses the MLKit play-services model on Android in order to save space.
With the example app, this version reduces the release version from 14.9MB to 7MB.
More information: https://developers.google.com/ml-kit/vision/barcode-scanning/android
Published by juliansteenbakker over 2 years ago
Bugfixes:
Published by juliansteenbakker over 2 years ago
Bugfixes:
Published by juliansteenbakker over 2 years ago
BREAKING CHANGES:
This version adds a new allowDuplicates option which now defaults to FALSE. this means that it will only call onDetect once after a scan.
If you still want duplicates, you can set allowDuplicates to true.
This also means that you don't have to check for duplicates yourself anymore.
New features:
Bugfixes:
Published by juliansteenbakker over 2 years ago
You can provide a path to controller.analyzeImage(path) in order to scan a local photo from the gallery! Check out the example app to see how you can use the image_picker plugin to retrieve a photo from the gallery. Please keep in mind that this feature is only supported on Android and iOS.
Another feature that has been added is a format selector! Just keep in mind that iOS for now only supports 1 selected barcode.
Published by juliansteenbakker over 2 years ago
mobile_scanner is now compatible with sdk >= 2.12 and flutter >= 2.2.0
Published by juliansteenbakker over 2 years ago