CameraStyle constructor
CameraStyle({
- Widget cameraCloseIcon = const Icon(Icons.close, color: Colors.white),
- Widget takePictureIcon = const Icon(Icons.camera, color: Colors.white),
- Widget chooseCameraIcon = const Icon(Icons.camera_alt, color: Colors.white),
- Widget cameraBackButton = const Icon(Icons.arrow_back_ios_new, color: Colors.white),
- Widget cameraAddMediaButton = const Icon(Icons.add, color: Colors.white),
- Widget cameraDeleteMediaButton = const Icon(Icons.delete, color: Colors.white),
- Widget cameraSelectedMediaButton = const Icon(Icons.done, color: Colors.white),
- Widget videoIcon = const Icon(Icons.video_call_rounded, color: Colors.white),
- Widget flipCameraIcon = const Icon(Icons.flip_camera_ios, color: Colors.white),
- String finishButtonTitle = 'Done',
- TextStyle finishButtonStyle = const TextStyle(color: Colors.white, fontSize: 16.0, fontWeight: FontWeight.w700),
- EdgeInsets finishButtonPadding = const EdgeInsets.only(bottom: 8.0),
- double basicCameraViewBorderRadius = 34,
- double basicCameraCropContainerHeight = 392,
- double basicCameraCropContainerBorderRadius = 24,
- Color basicCameraCropContainerBorderColor = Colors.white,
- Widget basicCameraFlashIcon = const Icon(Icons.flash_on, color: Colors.white),
- Widget basicCameraFlashAutoIcon = const Icon(Icons.flash_auto, color: Colors.white),
- Widget basicCameraFlashOffIcon = const Icon(Icons.flash_off, color: Colors.white),
- Widget? basicCameraTakePhotoButton,
- 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,
});