MaskForCameraView constructor

const MaskForCameraView({
  1. Key? key,
  2. required String ocrType,
  3. String title = "OCR Scan",
  4. required double boxWidth,
  5. required double boxHeight,
  6. double boxBorderWidth = 1.8,
  7. double boxBorderRadius = 3.2,
  8. required ValueSetter<MaskForCameraViewResult> onTake,
  9. MaskForCameraViewCameraDescription cameraDescription = MaskForCameraViewCameraDescription.rear,
  10. MaskForCameraViewBorderType borderType = MaskForCameraViewBorderType.dotted,
  11. MaskForCameraViewInsideLine? insideLine,
  12. bool visiblePopButton = true,
  13. Color appBarColor = Colors.black,
  14. TextStyle titleStyle = const TextStyle(color: Colors.white, fontSize: 18.0, fontWeight: FontWeight.w600),
  15. Color boxBorderColor = Colors.white,
  16. Color bottomBarColor = Colors.black,
  17. Color takeButtonColor = Colors.white,
  18. Color takeButtonActionColor = Colors.black,
  19. Color iconsColor = Colors.white,
})

Implementation

const MaskForCameraView({
  super.key,
  required this.ocrType,
  this.title = "OCR Scan",
  // this.boxWidth = 300.0,
  // this.boxHeight = 178.0,
  required this.boxWidth,
  required this.boxHeight,
  this.boxBorderWidth = 1.8,
  this.boxBorderRadius = 3.2,
  required this.onTake,
  this.cameraDescription = MaskForCameraViewCameraDescription.rear,
  this.borderType = MaskForCameraViewBorderType.dotted,
  this.insideLine,
  this.visiblePopButton = true,
  this.appBarColor = Colors.black,
  this.titleStyle = const TextStyle(
    color: Colors.white,
    fontSize: 18.0,
    fontWeight: FontWeight.w600,
  ),
  this.boxBorderColor = Colors.white,
  this.bottomBarColor = Colors.black,
  this.takeButtonColor = Colors.white,
  this.takeButtonActionColor = Colors.black,
  this.iconsColor = Colors.white,
});