QRCodeDartScanView class

Inheritance

Constructors

QRCodeDartScanView({Key? key, TypeCamera typeCamera = TypeCamera.back, TypeScan typeScan = TypeScan.live, ValueChanged<Result>? onCapture, QRCodeDartScanResolutionPreset resolutionPreset = QRCodeDartScanResolutionPreset.medium, QRCodeDartScanController? controller, List<BarcodeFormat> formats = QRCodeDartScanDecoder.acceptedFormats, Widget? child, TakePictureButtonBuilder? takePictureButtonBuilder, double? widthPreview, double? heightPreview, Duration intervalScan = const Duration(milliseconds: 500), OnResultInterceptorCallback? onResultInterceptor, DeviceOrientation? lockCaptureOrientation = DeviceOrientation.portraitUp, ImageDecodeOrientation imageDecodeOrientation = ImageDecodeOrientation.original, ValueChanged<String>? onCameraError, int? fps, int? videoBitrate, CroppingStrategy? croppingStrategy, Offset? focusPoint, Duration imageStreamTimeout = const Duration(seconds: 2)})
const

Properties

child Widget?
Optional child widget to overlay on top of the camera preview
final
controller QRCodeDartScanController?
Controller to manage the QR code scanning functionality
final
croppingStrategy CroppingStrategy?
Strategy to crop the camera image before decoding
final
focusPoint Offset?
Focus point for the camera preview
final
formats List<BarcodeFormat>
Use to limit a specific format If null use all accepted formats List of barcode formats to scan for. If null or empty, uses all accepted formats
final
fps int?
Frames per second for the camera preview
final
hashCode int
The hash code for this object.
no setterinherited
heightPreview double?
Height of the camera preview
final
imageDecodeOrientation ImageDecodeOrientation
Controls how the image is oriented during decoding
final
imageStreamTimeout Duration
Timeout for the image stream
final
intervalScan Duration
Minimum duration between scans of the same QR code
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
lockCaptureOrientation DeviceOrientation?
Forces a specific device orientation for capturing
final
onCameraError ValueChanged<String>?
Callback when camera errors occur
final
onCapture ValueChanged<Result>?
final
onResultInterceptor OnResultInterceptorCallback?
Callback to intercept and decide if the result should be returned
final
resolutionPreset QRCodeDartScanResolutionPreset
Resolution preset for the camera preview
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
takePictureButtonBuilder TakePictureButtonBuilder?
Builder for customizing the take picture button
final
typeCamera TypeCamera
final
typeScan TypeScan
final
videoBitrate int?
Video bitrate for the camera preview
final
widthPreview double?
Width of the camera preview
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() QRCodeDartScanViewState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited