AiBarcodeScanner constructor
const
AiBarcodeScanner({
- Key? key,
- BoxFit fit = BoxFit.cover,
- MobileScannerController? controller,
- Color? borderColor,
- double? cutOutWidth,
- double? cutOutHeight,
- double borderWidth = 12,
- Color overlayColor = const Color.fromRGBO(0, 0, 0, 82),
- double borderRadius = 24,
- double borderLength = 42,
- double cutOutSize = 352,
- double cutOutBottomOffset = 124,
- double scanWindowUpdateThreshold = 0.0,
- bool showOverlay = true,
- bool showError = true,
- bool showSuccess = true,
- Color errorColor = Colors.red,
- Color successColor = Colors.green,
- Widget errorBuilder()?,
- Widget placeholderBuilder()?,
- void onDispose()?,
- Rect? scanWindow,
- PreferredSizeWidget? appBar,
- LayoutWidgetBuilder? overlayBuilder,
- void onDetect()?,
- bool validator()?,
- void onImagePick()?,
- String title = 'Scan any QR code',
- Widget child = const SizedBox.shrink(),
- bool hideDragHandler = false,
- bool hideTitle = false,
- AlignmentGeometry? buttonAlignment,
- List<
Widget> ? actions, - void onPop()?,
Implementation
const AiBarcodeScanner({
super.key,
this.fit = BoxFit.cover,
this.controller,
this.borderColor,
this.cutOutWidth,
this.cutOutHeight,
this.borderWidth = 12,
this.overlayColor = const Color.fromRGBO(0, 0, 0, 82),
this.borderRadius = 24,
this.borderLength = 42,
this.cutOutSize = 352,
this.cutOutBottomOffset = 124,
this.scanWindowUpdateThreshold = 0.0,
this.showOverlay = true,
this.showError = true,
this.showSuccess = true,
this.errorColor = Colors.red,
this.successColor = Colors.green,
this.errorBuilder,
this.placeholderBuilder,
this.onDispose,
this.scanWindow,
this.appBar,
this.overlayBuilder,
this.onDetect,
this.validator,
this.onImagePick,
this.title = 'Scan any QR code',
this.child = const SizedBox.shrink(),
this.hideDragHandler = false,
this.hideTitle = false,
this.buttonAlignment,
this.actions,
this.onPop,
});