EmojiEditorTheme constructor

const EmojiEditorTheme({
  1. EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder,
  2. Color backgroundColor = const Color(0xFF121B22),
  3. Duration scrollToDuration = Duration.zero,
  4. ThemeDraggableSheet themeDraggableSheet = const ThemeDraggableSheet(minChildSize: 0.4, maxChildSize: 0.4, initialChildSize: 0.4),
  5. bool showDragHandle = true,
  6. BottomActionBarConfig bottomActionBarConfig = const BottomActionBarConfig(buttonIconColor: imageEditorTextColor, backgroundColor: Color(0xFF121B22), buttonColor: Color(0xFF121B22), showBackspaceButton: false),
  7. SkinToneConfig skinToneConfig = const SkinToneConfig(enabled: true, dialogBackgroundColor: Color(0xFF252728), indicatorColor: Color(0xFF9E9E9E)),
  8. SearchViewConfig? searchViewConfig,
  9. CategoryViewConfig? categoryViewConfig,
  10. EmojiViewConfig? emojiViewConfig,
  11. TextStyle textStyle = DefaultEmojiTextStyle,
  12. bool swapCategoryAndBottomBar = true,
  13. EdgeInsets categoryTitlePadding = const EdgeInsets.only(left: 10),
  14. TextStyle categoryTitleStyle = const TextStyle(color: Color(0xFF86959C), fontWeight: FontWeight.w500, fontSize: 14),
})

Creates an instance of the EmojiEditorTheme class with the specified theme properties.

Example:

EmojiEditorTheme(
  bottomActionBarConfig: BottomActionBarConfig(...),
  skinToneConfig: SkinToneConfig(...),
  ...
)

Implementation

const EmojiEditorTheme({
  this.editorBoxConstraintsBuilder,
  this.backgroundColor = const Color(0xFF121B22),
  this.scrollToDuration = Duration.zero,
  this.themeDraggableSheet = const ThemeDraggableSheet(
    minChildSize: 0.4,
    maxChildSize: 0.4,
    initialChildSize: 0.4,
  ),
  this.showDragHandle = true,
  this.bottomActionBarConfig = const BottomActionBarConfig(
    buttonIconColor: imageEditorTextColor,
    backgroundColor: Color(0xFF121B22),
    buttonColor: Color(0xFF121B22),
    showBackspaceButton: false,
  ),
  this.skinToneConfig = const SkinToneConfig(
    enabled: true,
    dialogBackgroundColor: Color(0xFF252728),
    indicatorColor: Color(0xFF9E9E9E),
  ),
  this.searchViewConfig,
  this.categoryViewConfig,
  this.emojiViewConfig,
  this.textStyle = DefaultEmojiTextStyle,
  this.swapCategoryAndBottomBar = true,
  this.categoryTitlePadding = const EdgeInsets.only(left: 10),
  this.categoryTitleStyle = const TextStyle(
    color: Color(0xFF86959C),
    fontWeight: FontWeight.w500,
    fontSize: 14,
  ),
});