EmojiGifPickerIcon constructor
EmojiGifPickerIcon({
- Key? key,
- dynamic onBackSpacePressed()?,
- void onEmojiSelected(
- Category? category,
- Emoji emoji
- void onGifSelected(
- GiphyGif? gif
- Widget? keyboardIcon,
- required String id,
- TextEditingController? controller,
- bool viewGif = true,
- bool viewEmoji = true,
- bool? fromStack,
- required Icon icon,
- Color? hoveredBackgroundColor,
- Color? backgroundColor,
Implementation
EmojiGifPickerIcon(
{super.key,
this.onBackSpacePressed,
this.onEmojiSelected,
this.onGifSelected,
Widget? keyboardIcon,
required this.id,
this.controller,
this.viewGif = true,
this.viewEmoji = true,
bool? fromStack,
required this.icon,
Color? hoveredBackgroundColor,
Color? backgroundColor})
: fromStack = fromStack ?? (Platform.I.isMobile ? false : true),
hoveredBackgroundColor = hoveredBackgroundColor ??
Get.find<MenuStateController>()
.menuColors
.iconHoveredBackgroundColor,
backgroundColor = backgroundColor ??
Get.find<MenuStateController>().menuColors.iconBackgroundColor,
keyboardIcon = keyboardIcon ??
Icon(
Icons.keyboard,
size: icon.size,
color: icon.color,
);