EmojiEditorTheme class

The EmojiEditorTheme class defines the theme for the emoji editor in the image editor. It includes properties such as colors for the background, category indicator, category icons, and more.

Usage:

EmojiEditorTheme emojiEditorTheme = EmojiEditorTheme(
  background: Colors.grey,
  indicatorColor: Colors.blue,
  iconColorSelected: Colors.green,
  iconColor: Colors.black,
  skinToneDialogBgColor: Colors.brown,
  skinToneIndicatorColor: Colors.orange,
);

Properties:

  • background: Background color of the emoji editor widget.

  • indicatorColor: Color of the category indicator.

  • iconColorSelected: Color of the category icon when selected.

  • iconColor: Color of the category icons.

  • skinToneDialogBgColor: Background color of the skin tone dialog.

  • skinToneIndicatorColor: Color of the small triangle next to multiple skin tone emojis.

Example Usage:

EmojiEditorTheme emojiEditorTheme = EmojiEditorTheme(
  background: Colors.grey,
  indicatorColor: Colors.blue,
  iconColorSelected: Colors.green,
  iconColor: Colors.black,
  skinToneDialogBgColor: Colors.brown,
  skinToneIndicatorColor: Colors.orange,
);

Color background = emojiEditorTheme.background;
Color indicatorColor = emojiEditorTheme.indicatorColor;
// Access other theme properties...

Constructors

EmojiEditorTheme({Color background = imageEditorBackgroundColor, Color indicatorColor = imageEditorPrimaryColor, Color iconColorSelected = imageEditorPrimaryColor, Color iconColor = const Color(0xFF9E9E9E), Color skinToneDialogBgColor = const Color(0xFF252728), Color skinToneIndicatorColor = const Color(0xFF9E9E9E)})
Creates an instance of the EmojiEditorTheme class with the specified theme properties.
const

Properties

background Color
Background color of the emoji editor widget.
final
hashCode int
The hash code for this object.
no setterinherited
iconColor Color
Color of the category icons.
final
iconColorSelected Color
Color of the category icon when selected.
final
indicatorColor Color
Color of the category indicator.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skinToneDialogBgColor Color
Background color of the skin tone dialog.
final
skinToneIndicatorColor Color
Color of the small triangle next to multiple skin tone emojis.
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