EmojiCell class

A widget that represents an individual clickable emoji cell. Can have a long pressed listener onSkinToneDialogRequested that provides necessary data to show a skin tone popup.

Inheritance

Constructors

EmojiCell({required Emoji emoji, required double emojiSize, required double emojiBoxSize, CategoryEmoji? categoryEmoji, required ButtonMode buttonMode, required bool enableSkinTones, required TextStyle? textStyle, required Color skinToneIndicatorColor, OnSkinToneDialogRequested? onSkinToneDialogRequested, required OnEmojiSelected onEmojiSelected})
Constructor for manually setting all properties
const
EmojiCell.fromConfig({required Emoji emoji, required double emojiSize, required double emojiBoxSize, CategoryEmoji? categoryEmoji, required OnEmojiSelected onEmojiSelected, OnSkinToneDialogRequested? onSkinToneDialogRequested, required Config config})
Constructor that can retrieve as much information as possible from Config

Properties

buttonMode ButtonMode
Visual tap feedback, see ButtonMode for options
final
categoryEmoji CategoryEmoji?
Optinonal category that will be passed through to callbacks
final
emoji Emoji
Emoji to display as the cell content
final
emojiBoxSize double
Hitbox of emoji cell
final
emojiSize double
Font size for the emoji
final
enableSkinTones bool
Whether to show skin popup indicator if emoji supports skin colors
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onEmojiSelected OnEmojiSelected
Callback for a single tap on the cell.
final
onSkinToneDialogRequested OnSkinToneDialogRequested?
Callback triggered on long press. Will be called regardless whether enableSkinTones is set or not and for any emoji to give a way for the caller to dismiss any existing overlays.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skinToneIndicatorColor Color
Color for skin color indicator triangle
final
textStyle TextStyle?
Custom text style to use on emoji
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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, int wrapWidth = 65}) 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