EmojiEditorStyle class

The EmojiEditorStyle class defines the styles for the emoji editor in the image editor.

Usage:

EmojiEditorStyle emojiEditorStyle = EmojiEditorStyle();

Constructors

EmojiEditorStyle({EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder, Color backgroundColor = const Color(0xFF121B22), Duration scrollToDuration = Duration.zero, DraggableSheetStyle themeDraggableSheet = const DraggableSheetStyle(minChildSize: 0.4, maxChildSize: 0.4, initialChildSize: 0.4), bool showDragHandle = true, BottomActionBarConfig bottomActionBarConfig = const BottomActionBarConfig(buttonIconColor: kImageEditorTextColor, backgroundColor: Color(0xFF121B22), buttonColor: Color(0xFF121B22), showBackspaceButton: false), SkinToneConfig skinToneConfig = const SkinToneConfig(enabled: true, dialogBackgroundColor: Color(0xFF252728), indicatorColor: Color(0xFF9E9E9E)), SearchViewConfig? searchViewConfig, CategoryViewConfig? categoryViewConfig, EmojiViewConfig? emojiViewConfig, TextStyle textStyle = DefaultEmojiTextStyle, ViewOrderConfig viewOrderConfig = const ViewOrderConfig(top: EmojiPickerItem.searchBar, middle: EmojiPickerItem.emojiView, bottom: EmojiPickerItem.categoryBar), EdgeInsets categoryTitlePadding = const EdgeInsets.only(left: 10), TextStyle categoryTitleStyle = const TextStyle(color: Color(0xFF86959C), fontWeight: FontWeight.w500, fontSize: 14)})
Creates an instance of the EmojiEditorStyle class with the specified style properties.
const

Properties

backgroundColor Color
Background color for the emoji editor.
final
bottomActionBarConfig BottomActionBarConfig
Configuration for the bottom action bar.
final
categoryTitlePadding EdgeInsets
Padding for the category title.
final
categoryTitleStyle TextStyle
Text style for the category title.
final
categoryViewConfig CategoryViewConfig?
Configuration for the category view.
final
editorBoxConstraintsBuilder EditorBoxConstraintsBuilder?
Use this to build custom BoxConstraints that will be applied to the modal bottom sheet displaying the EmojiEditor.
final
emojiViewConfig EmojiViewConfig?
Configuration for the emoji view.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollToDuration Duration
Duration for the scroll animation.
final
searchViewConfig SearchViewConfig?
Configuration for the search view.
final
showDragHandle bool
Specifies whether a drag handle is shown on the bottom sheet.
final
skinToneConfig SkinToneConfig
Configuration for the skin tone.
final
textStyle TextStyle
Custom emoji text style to apply to emoji characters in the grid.
final
themeDraggableSheet DraggableSheetStyle
Configuration settings for the draggable bottom sheet component.
final
viewOrderConfig → ViewOrderConfig
View order config
final

Methods

copyWith({SkinToneConfig? skinToneConfig, BottomActionBarConfig? bottomActionBarConfig, SearchViewConfig? searchViewConfig, CategoryViewConfig? categoryViewConfig, EmojiViewConfig? emojiViewConfig, TextStyle? textStyle, ViewOrderConfig? viewOrderConfig, bool? showDragHandle, DraggableSheetStyle? themeDraggableSheet, EdgeInsets? categoryTitlePadding, TextStyle? categoryTitleStyle, Color? backgroundColor, Duration? scrollToDuration, EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder}) EmojiEditorStyle
Creates a copy of this EmojiEditorStyle object with the given fields replaced with new values.
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