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 background = imageEditorBackgroundColor, Color cropCornerColor = imageEditorPrimaryColor})
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
background Color
Background color of the crop and rotate editor.
final
cropCornerColor Color
Color of the crop corners.
final
hashCode int
The hash code for this object.
no setterinherited
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