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
- Inheritance
-
- Object
- PlatformUiSettings
- AndroidUiSettings
Constructors
-
AndroidUiSettings.new({String? toolbarTitle, Color? toolbarColor, @Deprecated("This property is deprecated and no longer in use. Please use 'statusBarLight' instead.") Color? statusBarColor, bool? statusBarLight, 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, CropAspectRatioPresetData? initAspectRatio, CropStyle cropStyle = CropStyle.rectangle, List<
CropAspectRatioPresetData> aspectRatioPresets = const [CropAspectRatioPreset.original, CropAspectRatioPreset.square, CropAspectRatioPreset.ratio3x2, CropAspectRatioPreset.ratio4x3, CropAspectRatioPreset.ratio16x9]})
Properties
- activeControlsWidgetColor → Color?
-
desired resolved color of the active and selected widget and progress wheel middle line (default is darker orange)
final
-
aspectRatioPresets
→ List<
CropAspectRatioPresetData> -
controls the list of aspect ratios in the crop menu view.
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
- cropStyle → CropStyle
-
controls the style of crop bounds, it can be rectangle or
circle style (default is CropStyle.rectangle).
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 → CropAspectRatioPresetData?
-
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
-
true for light navigation bar (dark icons), false for dark navigation bar (light icons)
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
- statusBarLight → bool?
-
true for light status bar (dark icons), false for dark status bar (light icons)
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> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited