rendering library
Barcodes on screen and in files with colors, shapes and a logo: BarcodeView and BarcodeStyle.
A layer on top of core.dart, which it exports too.
Classes
- Barcode
- A barcode found in an image or a camera frame.
- BarcodeCaption
- Text drawn with a barcode: BarcodeStyle.title above it, BarcodeStyle.caption under it. On screen and in the PNG and SVG exports alike.
- BarcodeCard
- A rounded plate under a barcode and its text: BarcodeStyle.card.
- BarcodeError
- Why a barcode was found but could not be decoded.
- BarcodeImage
- A created barcode as an 8-bit grayscale raster (0 = black, 255 = white).
- BarcodeInput
-
What
BarcodeWriteraccepts for a format (BarcodeFormat.input): a description for a form field, an example that encodes, and the kind of keyboard. - BarcodeLogo
- An image placed in the middle of a QR code.
- BarcodePosition
- The four corners of a barcode, in pixels of the source image.
- BarcodeReader
- Reads barcodes from images: photos, files, screenshots, raw pixels.
- BarcodeSequence
- One symbol of a structured append sequence (a message split across several barcodes).
- BarcodeStyle
-
How a barcode is drawn: by
BarcodeView, and by toPng, toSvg, encodePng and encodeSvg when exported. - BarcodeSymbol
- An encoded barcode: the module matrix plus what is needed to render it.
- BarcodeView
- Shows a barcode. Drawn as vectors from the module matrix, so it is sharp at any size and pixel density.
- BarcodeWriter
- Creates barcodes from text or binary data.
- PixelBuffer
- Raw pixels to read barcodes from: a video frame, a frame from another camera plugin, a rendered widget, a decoded image.
- ReaderOptions
- How thoroughly the engine searches an image.
Enums
- BarcodeContentType
- How the payload of a Barcode should be interpreted.
- BarcodeErrorKind
- The kind of a BarcodeError.
- BarcodeFormat
- A barcode symbology, or a specific variant of one.
- Binarizer
- How an image is turned into black and white before detection.
- EanAddOn
- What to do with EAN-2/EAN-5 add-on symbols (see ReaderOptions.eanAddOn).
- ErrorCorrection
- Error correction level: how much of the symbol can be damaged and still read. Higher levels make the symbol larger.
- FinderShape
- Shape of the finder patterns ("eyes") of a QR code.
- ModuleShape
- Shape of the data modules of QR, Aztec and Data Matrix codes. Linear barcodes and PDF417 always use plain bars and rows.
- PixelLayout
- Byte layout of the pixels in a PixelBuffer.
Constants
- zxingCppVersion → const String
- The zxing-cpp version inside the engine.
Functions
-
warmUpBarcodeEngine(
) → Future< void> -
Starts the barcode engine ahead of time, e.g. in
main(), so that the first scan or read does not wait for it.
Exceptions / Errors
- BarcodeWriteException
- The data cannot be encoded in the requested format (e.g. letters in an EAN-13, or too much data for the chosen symbol version).
- CameraFailureException
- The camera failed: it is used by another app, or the platform reported an error.
- CameraNotFoundException
- The device has no camera with the requested facing.
- CameraPermissionException
- The user denied camera access (or it is restricted by the system).
- EngineException
- The engine failed to start or stopped unexpectedly. The next call starts it again.
- ImageDecodeException
- The input is not an image the engine can decode (corrupt file, an unsupported format, or not an image at all).
- ScannerException
-
A camera problem reported by the scanner in
ScannerState.error. - ZxingException
- Base class of every exception thrown by flutter_zxing 4.