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.new(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
getter/setter pair
bottomWidget Widget?
Something that should be shown between bottom of the finder and camera
getter/setter pair
decoration BoxDecoration
The shape by which background will be clipped and which will be presented as finder hole
getter/setter pair
finderAspectRatio FinderAspectRatio?
The finder view rectangle aspect ratio
getter/setter pair
finderInsets Insets?
The finder view Insets
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
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.
no setterinherited
topWidget Widget?
Something that should be shown between top of the finder and camera
getter/setter pair
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
getter/setter pair

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