SeniorImageCropper class

Constructors

SeniorImageCropper({required String cropperTitle, required String takePhotoLabel, required String pickImageLabel, String? doneButtonLabel, String? cancelButtonLabel, required dynamic onCropImage(File croppedImage), int? maxSizeMb, VoidCallback? onPermissionCameraDenied, VoidCallback? onPermissionGalleryDenied, dynamic onException(Object e)?, SeniorImageCropperStyle? style})
Creates the SDS Image Cropper component. The parameters cropperTitle, takePhotoLabel, pickImageLabel, onCropImage, onPermissionCameraDenied and onPermissionGalleryDenied are required.

Properties

cancelButtonLabel String?
The label for the cancel button on iOS.
final
cropperTitle String
Title for the image cropper.
final
doneButtonLabel String?
The label for tue done button on iOS.
final
hashCode int
The hash code for this object.
no setterinherited
maxSizeMb int?
Maximum image size.
final
onCropImage → dynamic Function(File croppedImage)
Callback function executed when the image is cropped. Receive the cropped image.
final
onException → (dynamic Function(Object e)?)
Function executed when an unexpected exception happens.
final
onPermissionCameraDenied VoidCallback?
Callback function executed when there is no permission to access the camera.
final
onPermissionGalleryDenied VoidCallback?
Callback function executed when there is no permission to access the gallery.
final
pickImageLabel String
The label for the option to choose a saved image.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style SeniorImageCropperStyle?
The component's style definitions. Allows you to configure? SeniorImageCropperStyle.toolbarColor the toolbar color of the crop view. SeniorImageCropperStyle.toolbarContentColor the toolbar content color of the crop view. SeniorImageCropperStyle.activeControlsColor the color of the active controls of the crop view.
final
takePhotoLabel String
The label for the option to take a photo with your smartphone camera.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pickImage(BuildContext context) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited