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 backspaceColor = Colors.blue, Color skinToneDialogBgColor = Colors.white, Color skinToneIndicatorColor = Colors.grey, bool enableSkinTones = true, RecentTabBehavior recentTabBehavior = RecentTabBehavior.RECENT, int recentsLimit = 28, bool replaceEmojiOnLimitExceed = false, Widget noRecents = DefaultNoRecentsWidget, Widget loadingIndicator = const SizedBox.shrink(), Duration tabIndicatorAnimDuration = kTabScrollDuration, CategoryIcons categoryIcons = const CategoryIcons(), ButtonMode buttonMode = ButtonMode.MATERIAL, bool checkPlatformCompatibility = true, List<CategoryEmoji>? emojiSet, TextStyle? emojiTextStyle, double? customSkinColorOverlayHorizontalOffset})
Constructor
const

Properties

backspaceColor Color
The color of the backspace icon button
final
bgColor Color
The background color of the Widget
final
buttonMode ButtonMode
Choose visual response for tapping on an emoji cell
final
categoryIcons CategoryIcons
Determines the icon to display for each Category
final
checkPlatformCompatibility bool
Verify that emoji glyph is supported by the platform (Android only)
final
columns int
Number of emojis per row
final
customSkinColorOverlayHorizontalOffset double?
Customize skin color overlay horizontal offset in case of ShellRoute or other cases, when EmojiPicker is not aligned to the left border of the screen. Reference: https://github.com/Fintasys/emoji_picker_flutter/issues/148
final
emojiSet List<CategoryEmoji>?
Custom emojis; if set, overrides default emojis provided by the library
final
emojiSizeMax double
Width and height the emoji will be maximal displayed Can be smaller due to screen size and amount of columns
final
emojiTextStyle TextStyle?
Custom emoji text style to apply to emoji characters in the grid
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
loadingIndicator Widget
A widget to display while emoji picker is initializing
final
noRecents Widget
A widget (usually Text) to be displayed if no recent emojis to display
final
recentsLimit int
Limit of recently used emoji that will be saved
final
recentTabBehavior RecentTabBehavior
Behavior of Recent Tab (Recent, Popular)
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
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