EmojiEditorTheme constructor
const
EmojiEditorTheme({
- EditorBoxConstraintsBuilder? editorBoxConstraintsBuilder,
- Color backgroundColor = const Color(0xFF121B22),
- Duration scrollToDuration = Duration.zero,
- ThemeDraggableSheet themeDraggableSheet = const ThemeDraggableSheet(minChildSize: 0.4, maxChildSize: 0.4, initialChildSize: 0.4),
- bool showDragHandle = true,
- BottomActionBarConfig bottomActionBarConfig = const BottomActionBarConfig(buttonIconColor: imageEditorTextColor, 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,
- bool swapCategoryAndBottomBar = true,
- EdgeInsets categoryTitlePadding = const EdgeInsets.only(left: 10),
- 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,
),
});