FinderConfiguration class
The finder view is a rectangular overlay view that clips the camera view, so that the detection will focus just a specific area.
You can specify the size and positioning, as well as other UI properties.
Set this property to true
if you want to use the Finder View, false
otherwise (default: false)
- Annotations
-
- @JsonSerializable(createFactory: false, includeIfNull: false, explicitToJson: true)
Constructors
- FinderConfiguration({required BoxDecoration decoration, Color? backgroundColor, FinderAspectRatio? finderAspectRatio = const FinderAspectRatio(width: 1, height: 1), Widget? widget, Widget? topWidget, Widget? bottomWidget, Insets? finderInsets = const Insets(left: 20, top: 20, right: 20, bottom: 20), OnFinderRectChange? onFinderRectChange})
Properties
- backgroundColor ↔ Color?
-
The overlay background color, around the finder view rectangle
read / write
- bottomWidget ↔ Widget?
-
Something that should be shown between bottom of the finder and camera
read / write
- decoration ↔ BoxDecoration
-
The shape by which background will be clipped and which will be presented as finder hole
read / write
- finderAspectRatio ↔ FinderAspectRatio?
-
The finder view rectangle aspect ratio
read / write
- finderInsets ↔ Insets?
-
The finder view Insets
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- onFinderRectChange → OnFinderRectChange?
-
triggers when the finder area is changed, it helpfull to align some content on tom of the finder
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- topWidget ↔ Widget?
-
Something that should be shown between top of the finder and camera
read / write
- widget ↔ Widget?
-
This widget will be drawn on top of the finder hole.
Here you can add some custom design, for example, with qr code placeholder
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited