Skip to content
On this page

EmojiPicker

A searchable collection of emoji for message composition.

EmojiPicker in FluttyUIEmojiPicker in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

EmojiPicker

const EmojiPicker({
  super.key,
  required this.onSelected,
  this.size,
  this.controller,
  this.searchController,
  this.emojis = EmojiCatalog.emojis,
  this.categories = EmojiCategory.values,
  this.initialCategory = EmojiCategory.smileys,
  this.maxEmojiVersion = 16,
  this.width = 320,
  this.height = 400,
  this.cellSize,
  this.emojiSize,
  this.backgroundColor,
  this.borderRadius,
  this.showShadow = true,
  this.autofocusSearch = false,
  this.searchPlaceholder = 'Search emoji…',
  this.emptySearchLabel = 'No emoji found',
  this.emptyRecentLabel = 'Your recent emoji will appear here',
});
ParameterTypeRequiredDefault
keyKey?Nonull
onSelectedValueChanged<String>Yes—
sizeComponentSize?Nonull
controllerEmojiPickerController?Nonull
searchControllerTextEditingController?Nonull
emojisList<EmojiData>NoEmojiCatalog.emojis
categoriesList<EmojiCategory>NoEmojiCategory.values
initialCategoryEmojiCategoryNoEmojiCategory.smileys
maxEmojiVersiondouble?No16
widthdoubleNo320
heightdoubleNo400
cellSizedouble?Nonull
emojiSizedouble?Nonull
backgroundColorColor?Nonull
borderRadiusdouble?Nonull
showShadowboolNotrue
autofocusSearchboolNofalse
searchPlaceholderStringNo'Search emoji…'
emptySearchLabelStringNo'No emoji found'
emptyRecentLabelStringNo'Your recent emoji will appear here'

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/messaging/emoji_picker/emoji_picker.dart

This reference is generated from the EmojiPicker declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI