ScannerBox constructor
const
ScannerBox({
- Key? key,
- required Rect boundingRect,
- required double scanProgress,
- required double alpha,
- bool isScanned = false,
- bool isIdle = false,
- bool isCapturing = false,
- bool showQrContent = false,
- String? qrData,
- Rect? qrStartRect,
- Rect? qrTargetRect,
- double qrProgress = 0.0,
- Color accentColor = kAccent,
- Color successColor = kSuccess,
- Color scanLineColor = kAccent,
Implementation
const ScannerBox({
super.key,
required this.boundingRect,
required this.scanProgress,
required this.alpha,
this.isScanned = false,
this.isIdle = false,
this.isCapturing = false,
this.showQrContent = false,
this.qrData,
this.qrStartRect,
this.qrTargetRect,
this.qrProgress = 0.0,
this.accentColor = kAccent,
this.successColor = kSuccess,
this.scanLineColor = kAccent,
});