MaskForCameraView constructor
const
MaskForCameraView({
- Key? key,
- required String ocrType,
- String title = "OCR Scan",
- required double boxWidth,
- required double boxHeight,
- double boxBorderWidth = 1.8,
- double boxBorderRadius = 3.2,
- required ValueSetter<
MaskForCameraViewResult> onTake, - MaskForCameraViewCameraDescription cameraDescription = MaskForCameraViewCameraDescription.rear,
- MaskForCameraViewBorderType borderType = MaskForCameraViewBorderType.dotted,
- MaskForCameraViewInsideLine? insideLine,
- bool visiblePopButton = true,
- Color appBarColor = Colors.black,
- TextStyle titleStyle = const TextStyle(color: Colors.white, fontSize: 18.0, fontWeight: FontWeight.w600),
- Color boxBorderColor = Colors.white,
- Color bottomBarColor = Colors.black,
- Color takeButtonColor = Colors.white,
- Color takeButtonActionColor = Colors.black,
- 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,
});