flutter_zxing library

Classes

CameraController
Controls a device camera.
CameraImage
A single complete image buffer from the platform camera.
Code
CodeHitRegion
A detected code together with the on-screen rect it occupies.
Codes
DecodeParams
Encode
EncodeParams
Format
ImageFormat
Pixel formats accepted by the decoder, mirroring ZXing::ImageFormat.
Messages
MultiResultOverlay
MultiScanPainter
Position
Represents the position of a barcode in an image.
ReaderWidget
Widget to scan a code from the camera stream
ScannerOverlayBorder
Universal border for a scanner overlay with a transparent cut-out. cutOutSize > 1 — size in pixels, <= 1 — percentage of the smaller side. Offsets: -1.0..1.0 (left/right, up/down).
WriterWidget
Widget to create a code from a text and barcode format
XFile
A CrossFile is a cross-platform, simplified File abstraction.
Zxing

Enums

CameraLensDirection
The direction the camera is facing.
CodeSource
EccLevel
ResolutionPreset
Affect the quality of video recording and image capture:

Properties

barcodeDemoText Map<int, String>
final
barcodeMaxTextLengths Map<int, int>
final
barcodeNames Map<int, String>
final
barcodeRatios Map<int, double>
final
zx Zxing
final

Functions

codeHitRegions(List<Code> codes, Size size, {Offset offset = Offset.zero}) List<CodeHitRegion>
Maps each code's Position onto the overlay's coordinate space.
convertImage(CameraImage image) Future<Uint8List>
Extracts the bytes the decoder should scan from a camera frame.
pngFromBytes(Uint8List bytes, int width, int height) Uint8List
Encodes a single-channel (grayscale) buffer as a PNG.
resizeToMaxSize(Image image, int? maxSize) → Image
Scales image down so that neither side exceeds maxSize, preserving the aspect ratio. Returns image untouched when maxSize is null or not positive, or when the image already fits.
rgbBytes(Image image) Uint8List
Returns image as a tightly packed 8-bit RGB buffer of width * height * 3 bytes.
tightlyPackedYPlaneFromCameraImage(CameraImage image) Uint8List
Returns the luminance (Y) plane of image without its row padding.