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(),
  blurEditor: BlurEditorTheme(),
  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.

  • blurEditor: Theme for the blur 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.

  • loadingDialogTheme: Theme for the loading dialog.

  • adaptiveDialogTheme: Theme for the adaptive dialog.

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({EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder, double outsideCaptureAreaLayerOpacity = 0.5, ThemeLayerInteraction layerInteraction = const ThemeLayerInteraction(), HelperLineTheme helperLine = const HelperLineTheme(), PaintingEditorTheme paintingEditor = const PaintingEditorTheme(), TextEditorTheme textEditor = const TextEditorTheme(), CropRotateEditorTheme cropRotateEditor = const CropRotateEditorTheme(), FilterEditorTheme filterEditor = const FilterEditorTheme(), BlurEditorTheme blurEditor = const BlurEditorTheme(), EmojiEditorTheme emojiEditor = const EmojiEditorTheme(), StickerEditorTheme stickerEditor = const StickerEditorTheme(), LoadingDialogTheme loadingDialogTheme = const LoadingDialogTheme(), AdaptiveDialogTheme adaptiveDialogTheme = const AdaptiveDialogTheme(), SubEditorPageTheme subEditorPage = const SubEditorPageTheme(), Color background = imageEditorBackgroundColor, Color bottomBarBackgroundColor = const Color(0xFF000000), Color appBarForegroundColor = const Color(0xFFFFFFFF), Color appBarBackgroundColor = const Color(0xFF000000), 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

adaptiveDialogTheme AdaptiveDialogTheme
Theme for the adaptive dialog.
final
appBarBackgroundColor Color
Background color for the AppBar in the overview.
final
appBarForegroundColor Color
Background color for the AppBar in the overview.
final
background Color
Background color for the image editor in the overview.
final
blurEditor BlurEditorTheme
Theme for the blur editor.
final
bottomBarBackgroundColor Color
Background color for the BottomBar in the overview.
final
cropRotateEditor CropRotateEditorTheme
Theme for the crop & rotate editor.
final
editorBoxConstraintsBuilder EditorBoxConstraintsBuilder?
Use this to build custom BoxConstraints that will be applied globally to the modal bottom sheet when opening various editors from this library.
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
layerInteraction ThemeLayerInteraction
Theme for the layer interaction settings.
final
loadingDialogTheme LoadingDialogTheme
Theme for the loading dialog.
final
outsideCaptureAreaLayerOpacity double
If this opacity is greater than 0, it will paint a transparent overlay over all layers that are drawn outside the background image area. The overlay will have the specified opacity level.
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
subEditorPage SubEditorPageTheme
The theme configuration for the sub-editor page.
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