BarcodeKitView constructor

const BarcodeKitView({
  1. required void onBarcodeScanned(
    1. DetectedBarcode barcode
    ),
  2. required BarcodeKitUiBuilder uiBuilder,
  3. required Set<BarcodeFormat> formats,
  4. void onTextDetected(
    1. String detectedText
    )?,
  5. Color backdropColor = Colors.black,
  6. Widget barcodeOverlayBuilder(
    1. BuildContext context,
    2. DetectedBarcode barcode
    )? = defaultBarcodeOverlayBuilder,
  7. bool paused = false,
  8. bool mask = true,
  9. double maskHeight = 200,
  10. double maskWidth = 200,
  11. double pauseBlurAmount = 10,
  12. double pauseZoomAmount = 0.2,
  13. bool followRotation = true,
  14. List<Widget>? children,
  15. BoxFit cameraFit = BoxFit.cover,
  16. bool enableOCR = false,
  17. CameraLensDirection direction = CameraLensDirection.back,
  18. List<CameraLensDirection> fallbackDirections = const [CameraLensDirection.front],
  19. Widget? widgetAboveMask,
  20. Widget? widgetBelowMask,
  21. double maskAdditionpauseOpacity = 0.1,
  22. Key? key,
})

Create a new BarcodeKitView

Implementation

const BarcodeKitView({
  required this.onBarcodeScanned,
  required this.uiBuilder,
  required this.formats,
  this.onTextDetected,
  this.backdropColor = Colors.black,
  this.barcodeOverlayBuilder = defaultBarcodeOverlayBuilder,
  this.paused = false,
  this.mask = true,
  this.maskHeight = 200,
  this.maskWidth = 200,
  this.pauseBlurAmount = 10,
  this.pauseZoomAmount = 0.2,
  this.followRotation = true,
  this.children,
  this.cameraFit = BoxFit.cover,
  this.enableOCR = false,
  this.direction = CameraLensDirection.back,
  this.fallbackDirections = const [CameraLensDirection.front],
  this.widgetAboveMask,
  this.widgetBelowMask,
  this.maskAdditionpauseOpacity = 0.1,
  super.key,
});