UniversalScannerView constructor
const
UniversalScannerView({
- Key? key,
- ScannerController? controller,
- ScanMode initialMode = ScanMode.qr,
- List<
ScanMode> ? enabledModes, - bool enableQr = true,
- bool enableBarcode = true,
- bool enablePdf417 = true,
- bool enablePassport = true,
- bool enableAadhaar = true,
- bool enablePan = true,
- bool enableDrivingLicense = true,
- bool enableVin = true,
- bool enableOcr = true,
- bool enableFace = true,
- bool enableDocument = true,
- bool enableInvoice = true,
- bool enableReceipt = true,
- bool enableBusinessCard = true,
- bool enableMultiCode = true,
- bool enableCheque = true,
- bool enableIdCard = true,
- bool enableLicensePlate = true,
- ScannerUiTheme? theme,
- Color? primaryAccentColor,
- Color? backgroundColor,
- Color? modeSelectorBackgroundColor,
- Color? overlayMaskColor,
- Color? laserBeamColor,
- bool? showModeBadge,
- bool? showGuideBox,
- bool? showLaserBeam,
- bool autoShowResultBottomSheet = true,
- dynamic onResultDetected(
- ScanResult result
- Widget overlayBuilder(
- BuildContext context,
- ScannerController controller
Constructs a new UniversalScannerView with default pre-packaged SDK layout.
Implementation
const UniversalScannerView({
super.key,
this.controller,
this.initialMode = ScanMode.qr,
this.enabledModes,
this.enableQr = true,
this.enableBarcode = true,
this.enablePdf417 = true,
this.enablePassport = true,
this.enableAadhaar = true,
this.enablePan = true,
this.enableDrivingLicense = true,
this.enableVin = true,
this.enableOcr = true,
this.enableFace = true,
this.enableDocument = true,
this.enableInvoice = true,
this.enableReceipt = true,
this.enableBusinessCard = true,
this.enableMultiCode = true,
this.enableCheque = true,
this.enableIdCard = true,
this.enableLicensePlate = true,
this.theme,
this.primaryAccentColor,
this.backgroundColor,
this.modeSelectorBackgroundColor,
this.overlayMaskColor,
this.laserBeamColor,
this.showModeBadge,
this.showGuideBox,
this.showLaserBeam,
this.autoShowResultBottomSheet = true,
this.onResultDetected,
this.overlayBuilder,
}) : builder = null;