code_scan 0.5.0
code_scan: ^0.5.0 copied to clipboard
A flexible code scanner for QR codes, barcodes and many others. Using Google's ML Kit. Use it as a Widget with a camera or use the methods provided, with a camera controller.
0.5.0 #
BREAKING CHANGES!
Fixed:
- Widget life cycle using an internal controller.
The widget would crash when going
inactiveand thenresumed - Added
removeObserveron disposed
Removed:
.start()listener function, now instantiate a new listener.stop()listener function, now use.dispose()to stop the listener
The
CodeScannerCameraListeneris now disposed along with the camera and a new listener is initialized when the widget resumes. This is so the lifecycle can make sure the listener is synchronized with the current camera controller. This also means that theonCreatedcallback will be called more than once, when the widget's life cycle is resumed, with the updated camera controller and listener.
Changed:
- Separated classes into multiple files
0.4.0 #
Added:
- Exported used interfaces
ResolutionPresetandBarcodeFormat onErrorcallback
Changed:
- Default
ResolutionPresetfrommediumtohigh, becausemediummay not be supported on all devices (CodeScanner-flutter/issues/1)
0.3.3 #
Fixed:
- "Memory leak" right before the app closes
0.3.2 #
Changed:
onAccessDeniedreturn value is optional, default isfalse
0.3.1 #
Added:
shield.iobadges
Fixed:
- ChangeLog typos
0.3.0 #
Added:
onAccessDeniedcallback
Fixed:
CameraControllercreated in the Lifecycle would not have aCodeScannerCameraListener- Scanner listener wouldn't be disposed of in the lifecycle
0.2.0 #
Added:
- Lifecycle states handling, on
CameraControllercreated internally - Documentation for
CodeScannerconstructor - Readme warning about the
CameraControllerlifecycle
Changed:
- ChangeLog's format
- Package description
0.1.0 #
Changed:
- Callback hands
listenerinstead ofcontroller
0.0.2 #
Changed:
- Dart SDK version
0.0.1 #
Initial release: CodeScanner