ImageEditorTheme class

The ImageEditorTheme class defines the overall theme for the image editor in your Flutter application. It includes themes for various editor components such as helper lines, painting editor, text editor, crop & rotate editor, filter editor, emoji editor, and more.

Usage:

ImageEditorTheme editorTheme = ImageEditorTheme(
  helperLine: HelperLineTheme(),
  paintingEditor: PaintingEditorTheme(),
  textEditor: TextEditorTheme(),
  cropRotateEditor: CropRotateEditorTheme(),
  filterEditor: FilterEditorTheme(),
  emojiEditor: EmojiEditorTheme(),
  stickerEditor: StickerEditorTheme(),
);

Properties:

  • helperLine: Theme for helper lines in the image editor.

  • paintingEditor: Theme for the painting editor.

  • textEditor: Theme for the text editor.

  • cropRotateEditor: Theme for the crop & rotate editor.

  • filterEditor: Theme for the filter editor.

  • emojiEditor: Theme for the emoji editor.

  • stickerEditor: Theme for the sticker editor.

  • background: Background color for the image editor.

  • loadingDialogTextColor: Text color for loading dialogs.

  • uiOverlayStyle: Defines the system UI overlay style for the image editor.

Example Usage:

ImageEditorTheme editorTheme = ImageEditorTheme(
  background: Colors.black,
  loadingDialogTextColor: Colors.white,
);

HelperLineTheme helperLineTheme = editorTheme.helperLine;
PaintingEditorTheme paintingEditorTheme = editorTheme.paintingEditor;
// Access other theme properties...

Please refer to the documentation of individual theme classes for more details.

Constructors

ImageEditorTheme({SystemMouseCursor layerHoverCursor = SystemMouseCursors.move, HelperLineTheme helperLine = const HelperLineTheme(), PaintingEditorTheme paintingEditor = const PaintingEditorTheme(), TextEditorTheme textEditor = const TextEditorTheme(), CropRotateEditorTheme cropRotateEditor = const CropRotateEditorTheme(), FilterEditorTheme filterEditor = const FilterEditorTheme(), EmojiEditorTheme emojiEditor = const EmojiEditorTheme(), StickerEditorTheme stickerEditor = const StickerEditorTheme(), Color background = imageEditorBackgroundColor, Color loadingDialogTextColor = imageEditorTextColor, SystemUiOverlayStyle uiOverlayStyle = const SystemUiOverlayStyle(statusBarColor: Color(0x42000000), statusBarIconBrightness: Brightness.light, systemNavigationBarIconBrightness: Brightness.light, statusBarBrightness: Brightness.dark, systemNavigationBarColor: Color(0xFF000000))})
Creates an instance of the ImageEditorTheme class with the specified theme properties.
const

Properties

background Color
Background color for the image editor.
final
cropRotateEditor CropRotateEditorTheme
Theme for the crop & rotate editor.
final
emojiEditor EmojiEditorTheme
Theme for the emoji editor.
final
filterEditor FilterEditorTheme
Theme for the filter editor.
final
hashCode int
The hash code for this object.
no setterinherited
helperLine HelperLineTheme
Theme for helper lines in the image editor.
final
layerHoverCursor SystemMouseCursor
The cursor style when hovering over a layer.
final
loadingDialogTextColor Color
Text color for loading dialogs.
final
paintingEditor PaintingEditorTheme
Theme for the painting editor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stickerEditor StickerEditorTheme
Theme for the sticker editor.
final
textEditor TextEditorTheme
Theme for the text editor.
final
uiOverlayStyle SystemUiOverlayStyle
Defines the system UI overlay style for the image editor.
final

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