ScannerOverlay class Null safety
This builds all the essential widgets which are displayed above the camera preview, like the SmoothProductCarousel, the SmoothViewFinder and the clear and compare buttons row.
The camera preview should be passed to backgroundChild.
Constructors
- ScannerOverlay({required dynamic topChild, dynamic backgroundChild})
-
const
Properties
- backgroundChild → dynamic
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- topChild → dynamic
-
final
Methods
-
build(
dynamic context) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited
Constants
-
48
- carouselBottomPadding → const double
-
10.0
- carouselHeightPct → const double
-
0.55
- scannerHeightPct → const double
-
0.33
- scannerWidthPct → const double
-
0.6