EmojiViewConfig class
Emoji View Config
Constructors
- EmojiViewConfig({int columns = 10, double emojiSizeMax = 28.0, Color backgroundColor = const Color(0xFFEBEFF2), double verticalSpacing = 0, double horizontalSpacing = 0, EdgeInsets gridPadding = EdgeInsets.zero, int recentsLimit = 28, bool replaceEmojiOnLimitExceed = false, Widget noRecents = DefaultNoRecentsWidget, Widget loadingIndicator = const SizedBox.shrink(), ButtonMode buttonMode = ButtonMode.MATERIAL})
-
Constructor
const
Properties
- backgroundColor → Color
-
The background color of the emoji view
final
-
Choose visual response for tapping on an emoji cell
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
- 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
- loadingIndicator → Widget
-
A widget to display while emoji picker is initializing
Hot reload is not supported
final
- noRecents → Widget
-
A widget (usually Text) to be displayed if no recent emojis to display
Hot reload is not supported
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
- verticalSpacing → double
-
Verical spacing between emojis
final
Methods
-
getEmojiBoxSize(
double width) → double - Get Emoji hitbox size based on properties and screen width
-
getEmojiSize(
double width) → double - Get Emoji size based on properties and screen width
-
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