presentation/chat/flutter_chat_ui library
Classes
- AttachmentButton
- A class that represents attachment button widget.
- Chat
-
Entry widget, represents the complete chat. If you wrap it in SafeArea and
it should be full screen, set SafeArea's
bottom
tofalse
. - ChatL10n
- Base chat l10n containing all required properties to provide localized copy. Extend this class if you want to create a custom l10n.
- ChatL10nAr
- Arabic l10n which extends ChatL10n.
- ChatL10nDe
- German l10n which extends ChatL10n.
- ChatL10nEn
- English l10n which extends ChatL10n.
- ChatL10nEs
- Spanish l10n which extends ChatL10n.
- ChatL10nKo
- Korean l10n which extends ChatL10n.
- ChatL10nPl
- Polish l10n which extends ChatL10n.
- ChatL10nPt
- Portuguese l10n which extends ChatL10n.
- ChatL10nRu
- Russian l10n which extends ChatL10n.
- ChatL10nTr
- Turkish l10n which extends ChatL10n.
- ChatL10nUk
- Ukrainian l10n which extends ChatL10n.
- ChatL10nZhCN
- Simplified Chinese l10n which extends ChatL10n.
- ChatL10nZhTW
- Traditional Chinese l10n which extends ChatL10n.
- ChatList
- Animated list that handles automatic animations and pagination.
- ChatTheme
- Base chat theme containing all required properties to make a theme. Extend this class if you want to create a custom theme.
- DarkChatTheme
- Dark chat theme which extends ChatTheme.
- DefaultChatTheme
- Default chat theme which extends ChatTheme.
- FileMessage
- A class that represents file message widget.
- ImageMessage
- A class that represents image message widget. Supports different aspect ratios, renders blurred image as a background which is visible if the image is narrow, renders image in form of a file if aspect ratio is very small or very big.
- Input
- A class that represents bottom bar widget with a text field, attachment and send buttons inside. By default hides send button when text field is empty.
- InputTextFieldController
- Controller for the TextField on Input widget To highlighting the matches for pattern
- Message
- Base widget for all message types in the chat. Renders bubbles around messages and status. Sets maximum width for a message for a nice look on larger screens.
- NewLineIntent
- PreviewTapOptions
- Options that allow to open link preview when tapped on image or a title of a preview. By default link preview opens only when tapped on a link itself.
- SendButton
- A class that represents send button widget.
- SendMessageIntent
- TextMessage
- A class that represents text message widget with optional link preview.
- TextMessageOptions
- UserAvatar
- Renders user's avatar or initials next to a message.
- UserName
- Renders user's name as a message heading according to the theme.
Enums
- BubbleRtlAlignment
- EmojiEnlargementBehavior
- Used to control the enlargement behavior of the emojis in the types.TextMessage.
- SendButtonVisibilityMode
- Used to toggle the visibility behavior of the SendButton based on the TextField state inside the Input widget.
Constants
-
colors
→ const List<
Color> - See ChatTheme.userAvatarNameColors
- dark → const Color
- Dark.
- error → const Color
- Error.
- neutral0 → const Color
- N0.
- neutral2 → const Color
- N2.
- neutral7 → const Color
- N7.
- neutral7WithOpacity → const Color
- N7 with opacity.
- primary → const Color
- Primary.
- secondary → const Color
- Secondary.
- secondaryDark → const Color
- Secondary dark.
Functions
-
formatBytes(
int size, [int fractionDigits = 2]) → String - Returns text representation of a provided bytes value (e.g. 1kB, 1GB).
-
isConsistsOfEmojis(
EmojiEnlargementBehavior emojiEnlargementBehavior, TextMessage message) → bool -
Returns whether the
message
consists of a single emoji or multiple emojis depending on the givenemojiEnlargementBehavior
.