wxscan_live library

Live QR scanning driven by the native camera.

Frames go from CameraX or AVFoundation straight into the scanner and never cross into Dart, which keeps a large per-frame copy off the UI isolate. What arrives here is the outcome of each frame, plus the preview as a Flutter texture.

To decode a still image instead, use the wxscan package, which this one links against.

Classes

MethodChannelWxScan
The real implementation: three channels to the platform binding.
ScanOutcome
The outcome of scanning one image.
ScanPoint
A point in image coordinates.
ScanResult
One decoded symbol.
WxPreviewSize
Size of the preview and the rotation still to be applied.
WxScanController
The scanning camera. CameraX on Android, AVFoundation on Apple platforms.
WxScanPlatform
Everything WxScan asks the native side to do.
WxScanPreview
The live camera image.
WxScanValue
Everything a scanning screen needs to know, as one immutable snapshot.

Enums

WxResolution
Capture resolution, given as the pixel count of the short side.

Extensions

ScanQuad on List<ScanPoint>
Helpers for the four corners of a symbol or a candidate.

Exceptions / Errors

WxCameraLost
The camera was taken over by another WxScanController.