AndroidUiSettings class

A helper class provides properties that can be used to customize the cropper view on Android.

The properties is mapped to fields of Ucrop.Options class in Ucrop library.

See: github.com/Yalantis/uCrop/blob/master/ucrop/src/main/java/com/yalantis/ucrop/UCrop.java#L260

Constructors

AndroidUiSettings({String? toolbarTitle, Color? toolbarColor, Color? statusBarColor, Color? toolbarWidgetColor, Color? backgroundColor, Color? activeControlsWidgetColor, Color? dimmedLayerColor, Color? cropFrameColor, Color? cropGridColor, int? cropFrameStrokeWidth, int? cropGridRowCount, int? cropGridColumnCount, int? cropGridStrokeWidth, bool? showCropGrid, bool? lockAspectRatio, bool? hideBottomControls, CropAspectRatioPreset? initAspectRatio})
const

Properties

activeControlsWidgetColor Color?
desired resolved color of the active and selected widget and progress wheel middle line (default is darker orange)
final
backgroundColor Color?
desired background color that should be applied to the root view
final
cropFrameColor Color?
desired color of crop frame
final
cropFrameStrokeWidth int?
desired width of crop frame line in pixels
final
cropGridColor Color?
desired color of crop grid/guidelines
final
cropGridColumnCount int?
crop grid columns count
final
cropGridRowCount int?
crop grid rows count
final
cropGridStrokeWidth int?
desired width of crop grid lines in pixels
final
dimmedLayerColor Color?
desired color of dimmed area around the crop bounds
final
hashCode int
The hash code for this object.
no setterinherited
hideBottomControls bool?
set to true to hide the bottom controls (shown by default)
final
initAspectRatio CropAspectRatioPreset?
desired aspect ratio is applied (from the list of given aspect ratio presets) when starting the cropper
final
lockAspectRatio bool?
set to true if you want to lock the aspect ratio of crop bounds with a fixed value (locked by default)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showCropGrid bool?
set to true if you want to see a crop grid/guidelines on top of an image
final
statusBarColor Color?
desired color of status
final
toolbarColor Color?
desired color of the Toolbar
final
toolbarTitle String?
desired text for Toolbar title
final
toolbarWidgetColor Color?
desired color of Toolbar text and buttons (default is black)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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