CropRotateEditorTheme class
The CropRotateEditorTheme
class defines the theme for the crop and rotate editor in the image editor.
It includes properties such as colors for the app bar, background, crop corners, and more.
Usage:
CropRotateEditorTheme cropRotateEditorTheme = CropRotateEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey,
cropCornerColor: Colors.blue,
cropRectType: InitCropRectType.circle,
);
Properties:
-
appBarBackgroundColor
: Background color of the app bar in the crop and rotate editor. -
appBarForegroundColor
: Foreground color (text and icons) of the app bar. -
background
: Background color of the crop and rotate editor. -
cropCornerColor
: Color of the crop corners. -
cropRectType
: Type of the initial crop rectangle (e.g.,InitCropRectType.circle
,InitCropRectType.imageRect
).
Example Usage:
CropRotateEditorTheme cropRotateEditorTheme = CropRotateEditorTheme(
appBarBackgroundColor: Colors.black,
appBarForegroundColor: Colors.white,
background: Colors.grey,
cropCornerColor: Colors.blue,
cropRectType: InitCropRectType.circle,
);
Color appBarBackgroundColor = cropRotateEditorTheme.appBarBackgroundColor;
Color background = cropRotateEditorTheme.background;
// Access other theme properties...
Constructors
- CropRotateEditorTheme({Color appBarBackgroundColor = imageEditorAppBarColor, Color appBarForegroundColor = const Color(0xFFE1E1E1), Color helperLineColor = const Color(0xFF000000), Color background = imageEditorBackgroundColor, Color cropCornerColor = imageEditorPrimaryColor, Color cropOverlayColor = const Color(0xFF000000), Color bottomBarBackgroundColor = imageEditorAppBarColor, Color bottomBarForegroundColor = const Color(0xFFE1E1E1), Color aspectRatioSheetBackgroundColor = const Color(0xFF303030), Color aspectRatioSheetForegroundColor = const Color(0xFFFAFAFA), double cropCornerLength = 36, double cropCornerThickness = 6})
-
Creates an instance of the
CropRotateEditorTheme
class with the specified theme properties.const
Properties
- appBarBackgroundColor → Color
-
Background color of the app bar in the crop and rotate editor.
final
- appBarForegroundColor → Color
-
Foreground color (text and icons) of the app bar.
final
- aspectRatioSheetBackgroundColor → Color
-
Background color of the bottomSheet for aspect ratios.
final
- aspectRatioSheetForegroundColor → Color
-
Foreground color of the bottomSheet for aspect ratios.
final
- background → Color
-
Background color of the crop and rotate editor.
final
- bottomBarBackgroundColor → Color
-
Background color of the bottom app bar.
final
- bottomBarForegroundColor → Color
-
Foreground color (text and icons) of the bottom app bar.
final
- cropCornerColor → Color
-
Color of the crop corners.
final
- cropCornerLength → double
-
The length of the crop corner.
final
- cropCornerThickness → double
-
The thickness of the crop corner.
final
- cropOverlayColor → Color
-
This refers to the overlay area atop the image when the cropping area is smaller than the image.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- helperLineColor → Color
-
Color from the helper lines when moving the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited