AWCameraPreview constructor
AWCameraPreview({
- required String username,
- required double captureTimeOut,
- required String profileProperty,
- required void getCapturedImagePackage(
- String capturedImagePackage
- required String? encryptionServerKey,
- String facePublicKey = "",
- BoxFit completedImageBoxFit = BoxFit.cover,
- BoxFit capturingImageBoxFit = BoxFit.cover,
- bool showFeedBack = false,
- CameraOrientation cameraOrientation = CameraOrientation.portrait,
- CameraPosition cameraPosition = CameraPosition.front,
- Alignment feedbackALignment = Alignment.topCenter,
- EdgeInsets feedbackPadding = const EdgeInsets.only(top: 10),
- TextStyle feedbackTextstyle = const TextStyle(fontSize: 20, color: Colors.black),
- Key? key,
Creates a preview widget for the given instance of FaceCapture, Workflow, username and timeout values.
Implementation
AWCameraPreview({
required this.username,
required this.captureTimeOut,
required this.profileProperty,
// required this.onCaptureComplete,
required this.getCapturedImagePackage,
//required this.getFeedback,
required this.encryptionServerKey,
this.facePublicKey = "",
this.completedImageBoxFit = BoxFit.cover,
this.capturingImageBoxFit = BoxFit.cover,
this.showFeedBack = false,
this.cameraOrientation = CameraOrientation.portrait,
this.cameraPosition = CameraPosition.front,
this.feedbackALignment = Alignment.topCenter,
this.feedbackPadding = const EdgeInsets.only(top: 10),
this.feedbackTextstyle = const TextStyle(fontSize: 20, color: Colors.black),
super.key,
});