EmojiSelectorStyle class
Comprehensive style configuration for the emoji selector.
Constructors
-
EmojiSelectorStyle({Color backgroundColor = Colors.white, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(24)), List<
BoxShadow> ? shadows, EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 8, vertical: 6), EdgeInsets margin = const EdgeInsets.all(8), double emojiSize = 40.0, double emojiSpacing = 4.0, EdgeInsets emojiPadding = const EdgeInsets.all(4), double zoomScale = 1.8, Duration zoomDuration = const Duration(milliseconds: 200), Curve zoomCurve = Curves.easeOutBack, Curve bounceCurve = Curves.elasticOut, double overlayOffset = 8.0, OverlayPosition preferredPosition = OverlayPosition.above, bool showIndicator = false, Color? indicatorColor, double indicatorSize = 8.0, Duration entryDuration = const Duration(milliseconds: 200), Curve entryCurve = Curves.easeOutBack, double zoomTranslateY = -20.0}) -
const
Properties
- backgroundColor → Color
-
Background color of the selector container.
final
- borderRadius → BorderRadius
-
Border radius of the selector container.
final
- bounceCurve → Curve
-
Curve for the bounce effect.
final
- effectiveIndicatorColor → Color
-
Effective indicator color.
no setter
-
effectiveShadows
→ List<
BoxShadow> -
Default shadows if none provided.
no setter
- emojiPadding → EdgeInsets
-
Padding around each emoji.
final
- emojiSize → double
-
Size of each emoji image.
final
- emojiSpacing → double
-
Spacing between emojis.
final
- entryCurve → Curve
-
Curve for entry animation.
final
- entryDuration → Duration
-
Duration of the entry/exit animation.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indicatorColor → Color?
-
Color of the indicator arrow (defaults to backgroundColor).
final
- indicatorSize → double
-
Size of the indicator arrow.
final
- margin → EdgeInsets
-
Margin from screen edges.
final
- overlayOffset → double
-
Distance from the anchor widget.
final
- padding → EdgeInsets
-
Padding inside the selector container.
final
- preferredPosition → OverlayPosition
-
Preferred position relative to anchor.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
shadows
→ List<
BoxShadow> ? -
Box shadow for the selector container.
final
- showIndicator → bool
-
Whether to show a pointer indicator arrow.
final
- zoomCurve → Curve
-
Curve for zoom-in animation.
final
- zoomDuration → Duration
-
Duration of the zoom animation.
final
- zoomScale → double
-
Scale factor when emoji is zoomed (long pressed).
final
- zoomTranslateY → double
-
Vertical translation when emoji is zoomed.
final
Methods
-
copyWith(
{Color? backgroundColor, BorderRadius? borderRadius, List< BoxShadow> ? shadows, EdgeInsets? padding, EdgeInsets? margin, double? emojiSize, double? emojiSpacing, EdgeInsets? emojiPadding, double? zoomScale, Duration? zoomDuration, Curve? zoomCurve, Curve? bounceCurve, double? overlayOffset, OverlayPosition? preferredPosition, bool? showIndicator, Color? indicatorColor, double? indicatorSize, Duration? entryDuration, Curve? entryCurve, double? zoomTranslateY}) → EmojiSelectorStyle - Creates a copy with the given fields replaced.
-
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.
inherited
Constants
- dark → const EmojiSelectorStyle
- Dark theme variant.
- facebook → const EmojiSelectorStyle
- Facebook-style theme.