AWCameraPreview constructor

AWCameraPreview({
  1. required String username,
  2. required double captureTimeOut,
  3. required String profileProperty,
  4. required void getCapturedImagePackage(
    1. String capturedImagePackage
    ),
  5. required String? encryptionServerKey,
  6. String facePublicKey = "",
  7. BoxFit completedImageBoxFit = BoxFit.cover,
  8. BoxFit capturingImageBoxFit = BoxFit.cover,
  9. bool showFeedBack = false,
  10. CameraOrientation cameraOrientation = CameraOrientation.portrait,
  11. CameraPosition cameraPosition = CameraPosition.front,
  12. Alignment feedbackALignment = Alignment.topCenter,
  13. EdgeInsets feedbackPadding = const EdgeInsets.only(top: 10),
  14. TextStyle feedbackTextstyle = const TextStyle(fontSize: 20, color: Colors.black),
  15. 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,
});