Config class

Config for customizations

Constructors

Config({int columns = 7, double emojiSizeMax = 32.0, double verticalSpacing = 0, double horizontalSpacing = 0, EdgeInsets gridPadding = EdgeInsets.zero, Category initCategory = Category.RECENT, Color bgColor = const Color(0xFFEBEFF2), Color indicatorColor = Colors.blue, Color iconColor = Colors.grey, Color iconColorSelected = Colors.blue, Color progressIndicatorColor = Colors.blue, Color backspaceColor = Colors.blue, Color skinToneDialogBgColor = Colors.white, Color skinToneIndicatorColor = Colors.grey, bool enableSkinTones = true, bool showRecentsTab = true, int recentsLimit = 28, bool replaceEmojiOnLimitExceed = false, Widget noRecents = DefaultNoRecentsWidget, Duration tabIndicatorAnimDuration = kTabScrollDuration, CategoryIcons categoryIcons = const CategoryIcons(), ButtonMode buttonMode = ButtonMode.MATERIAL})
Constructor
const

Properties

backspaceColor Color
The color of the backspace icon button
final
bgColor Color
The background color of the Widget
final
buttonMode ButtonMode
Change between Material and Cupertino button style
final
categoryIcons CategoryIcons
Determines the icon to display for each Category
final
columns int
Number of emojis per row
final
emojiSizeMax double
Width and height the emoji will be maximal displayed Can be smaller due to screen size and amount of columns
final
enableSkinTones bool
Enable feature to select a skin tone of certain emoji's
final
gridPadding EdgeInsets
The padding of GridView, default is EdgeInsets.zero
final
hashCode int
The hash code for this object.
no setteroverride
horizontalSpacing double
Horizontal spacing between emojis
final
iconColor Color
The color of the category icons
final
iconColorSelected Color
The color of the category icon when selected
final
indicatorColor Color
The color of the category indicator
final
initCategory Category
The initial Category that will be selected This Category will have its button in the bottombar darkened
final
noRecents Widget
A widget (usually Text) to be displayed if no recent emojis to display
final
progressIndicatorColor Color
The color of the loading indicator during initalization
final
recentsLimit int
Limit of recently used emoji that will be saved
final
replaceEmojiOnLimitExceed bool
Replace latest emoji on recents list on limit exceed
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showRecentsTab bool
Show extra tab with recently used emoji
final
skinToneDialogBgColor Color
The background color of the skin tone dialog
final
skinToneIndicatorColor Color
Color of the small triangle next to multiple skin tone emoji
final
tabIndicatorAnimDuration Duration
Duration of tab indicator to animate to next category
final
verticalSpacing double
Verical spacing between emojis
final

Methods

getEmojiSize(double width) double
Get Emoji size based on properties and screen width
getIconForCategory(Category category) IconData
Returns the icon for the category
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.
override