CameraStyle constructor

CameraStyle({
  1. Widget cameraCloseIcon = const Icon(Icons.close, color: Colors.white),
  2. Widget takePictureIcon = const Icon(Icons.camera, color: Colors.white),
  3. Widget chooseCameraIcon = const Icon(Icons.camera_alt, color: Colors.white),
  4. Widget cameraBackButton = const Icon(Icons.arrow_back_ios_new, color: Colors.white),
  5. Widget cameraAddMediaButton = const Icon(Icons.add, color: Colors.white),
  6. Widget cameraDeleteMediaButton = const Icon(Icons.delete, color: Colors.white),
  7. Widget cameraSelectedMediaButton = const Icon(Icons.done, color: Colors.white),
  8. Widget videoIcon = const Icon(Icons.video_call_rounded, color: Colors.white),
  9. Widget flipCameraIcon = const Icon(Icons.flip_camera_ios, color: Colors.white),
  10. String finishButtonTitle = 'Done',
  11. TextStyle finishButtonStyle = const TextStyle(color: Colors.white, fontSize: 16.0, fontWeight: FontWeight.w700),
  12. EdgeInsets finishButtonPadding = const EdgeInsets.only(bottom: 8.0),
  13. double basicCameraViewBorderRadius = 34,
  14. double basicCameraCropContainerHeight = 392,
  15. double basicCameraCropContainerBorderRadius = 24,
  16. Color basicCameraCropContainerBorderColor = Colors.white,
  17. Widget basicCameraFlashIcon = const Icon(Icons.flash_on, color: Colors.white),
  18. Widget basicCameraFlashAutoIcon = const Icon(Icons.flash_auto, color: Colors.white),
  19. Widget basicCameraFlashOffIcon = const Icon(Icons.flash_off, color: Colors.white),
  20. Widget? basicCameraTakePhotoButton,
  21. bool showBasicCamera = false,
})

Camera style

Implementation

CameraStyle({
  this.cameraCloseIcon = const Icon(
    Icons.close,
    color: Colors.white,
  ),
  this.takePictureIcon = const Icon(
    Icons.camera,
    color: Colors.white,
  ),
  this.chooseCameraIcon = const Icon(
    Icons.camera_alt,
    color: Colors.white,
  ),
  this.cameraBackButton = const Icon(
    Icons.arrow_back_ios_new,
    color: Colors.white,
  ),
  this.cameraAddMediaButton = const Icon(
    Icons.add,
    color: Colors.white,
  ),
  this.cameraDeleteMediaButton = const Icon(
    Icons.delete,
    color: Colors.white,
  ),
  this.cameraSelectedMediaButton = const Icon(
    Icons.done,
    color: Colors.white,
  ),
  this.videoIcon = const Icon(
    Icons.video_call_rounded,
    color: Colors.white,
  ),
  this.flipCameraIcon = const Icon(
    Icons.flip_camera_ios,
    color: Colors.white,
  ),
  this.finishButtonTitle = 'Done',
  this.finishButtonStyle = const TextStyle(
    color: Colors.white,
    fontSize: 16.0,
    fontWeight: FontWeight.w700,
  ),
  this.finishButtonPadding = const EdgeInsets.only(bottom: 8.0),
  this.basicCameraViewBorderRadius = 34,
  this.basicCameraCropContainerHeight = 392,
  this.basicCameraCropContainerBorderRadius = 24,
  this.basicCameraCropContainerBorderColor = Colors.white,
  this.basicCameraFlashIcon = const Icon(Icons.flash_on, color: Colors.white),
  this.basicCameraFlashAutoIcon = const Icon(Icons.flash_auto, color: Colors.white),
  this.basicCameraFlashOffIcon = const Icon(Icons.flash_off, color: Colors.white),
  this.basicCameraTakePhotoButton,
  this.showBasicCamera = false,
});