EmojiChoose class
The Emoji Keyboard widget
This widget displays a grid of Emoji sorted by Category which the user can horizontally scroll through.
There is also a bottombar which displays all the possible Category and allow the user to quickly switch to that Category
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- EmojiChoose
Constructors
-
EmojiChoose({required OnEmojiSelected onEmojiSelected, int columns = 7, int rows = 3, double sizeOfEmoji = 24.0, Category selectedCategory = Category.RECOMMENDED, Color bgColor = const Color.fromRGBO(242, 242, 242, 1), Color indicatorColor = Colors.blue, Color progressIndicatorColor = Colors.blue, required List<
String> recommendKeywords, int numRecommended = 10, String noRecommendationsText = "No Recommendations", TextStyle noRecommendationsStyle = const TextStyle(fontSize: 20, color: Colors.black26), String noRecentsText = "No Recents", TextStyle noRecentsStyle = const TextStyle(fontSize: 20, color: Colors.black26), CategoryIcons categoryIcons = const CategoryIcons(), ButtonMode buttonMode = ButtonMode.MATERIAL})
Properties
- bgColor ↔ Color
-
The background color of the keyboard
getter/setter pair
-
Determines the style given to the keyboard keys
getter/setter pair
- categoryIcons ↔ CategoryIcons
-
Determines the icon to display for each Category
getter/setter pair
- columns ↔ int
-
Number of columns in keyboard grid
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor ↔ Color
-
The color of the keyboard page indicator
getter/setter pair
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- noRecentsStyle ↔ TextStyle
-
The text style for the noRecentsText
getter/setter pair
- noRecentsText ↔ String
-
The string to be displayed if no recent emojis to display
getter/setter pair
- noRecommendationsStyle ↔ TextStyle
-
The text style for the noRecommendationsText
getter/setter pair
- noRecommendationsText ↔ String
-
The string to be displayed if no recommendations found
getter/setter pair
- numRecommended ↔ int
-
The maximum number of emojis to be recommended
getter/setter pair
- onEmojiSelected ↔ OnEmojiSelected
-
The function called when the emoji is selected
getter/setter pair
- progressIndicatorColor ↔ Color
-
getter/setter pair
-
recommendKeywords
↔ List<
String> -
A list of keywords that are used to provide the user with recommended emojis in Category.RECOMMENDED
getter/setter pair
- rows ↔ int
-
Number of rows in keyboard grid
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedCategory ↔ Category
-
The currently selected Category
getter/setter pair
- sizeOfEmoji ↔ double
-
The size of button emoji
getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _EmojiChooseState -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of
DiagnosticsNode
objects describing this node's children.inherited -
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited