flutter_chat_ui library
Classes
- AnimatedCircles
- Animated Circles Widget.
- AttachmentButton
- A class that represents attachment button widget.
- AvatarHandler
- Multi Avatar Handler 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.
- ChatL10nFi
- Finnish 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.
- ChatL10nSe
- Swedish 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.
- ChatState
- Chat widget state.
- 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.
- ImageGallery
- ImageGalleryOptions
- 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.
- InputOptions
- 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.
- MessageStatus
- A class that represents a message status.
- PatternStyle
- ScrollToUnreadOptions
- SendButton
- A class that represents send button widget.
- SystemMessage
- A class that represents system message widget.
- SystemMessageTheme
- TextMessage
- A class that represents text message widget with optional link preview.
- TextMessageOptions
- TextMessageText
- Widget to reuse the markdown capabilities, e.g., for previews.
- TypingAvatar
- TypingIndicator
- TypingIndicatorOptions
- TypingIndicatorTheme
- TypingWidget
- Typing Widget.
- UnreadHeader
- UnreadHeaderTheme
- UserAvatar
- Renders user's avatar or initials next to a message.
- UserName
- Renders user's name as a message heading according to the theme.
Constants
-
colors
→ const List<
Color> -
See ChatTheme.userAvatarNameColors.
[Color(0xffff6767), Color(0xff66e0da), Color(0xfff5a2d9), Color(0xfff0c722), Color(0xff6a85e5), Color(0xfffd9a6f), Color(0xff92db6e), Color(0xff73b8e5), Color(0xfffd7590), Color(0xffc78ae5)]
- dark → const Color
-
Dark.
Color(0xff1f1c38)
- error → const Color
-
Error.
Color(0xffff6767)
- neutral0 → const Color
-
N0.
Color(0xff1d1c21)
- neutral1 → const Color
-
N1.
Color(0xff615e6e)
- neutral2 → const Color
-
N2.
Color(0xff9e9cab)
- neutral7 → const Color
-
N7.
Color(0xffffffff)
- neutral7WithOpacity → const Color
-
N7 with opacity.
Color(0x80ffffff)
- primary → const Color
-
Primary.
Color(0xff6f61e8)
- secondary → const Color
-
Secondary.
Color(0xfff5f5f7)
- secondaryDark → const Color
-
Secondary dark.
Color(0xff2b2250)
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
.
Enums
- BubbleRtlAlignment
- EmojiEnlargementBehavior
-
Used to control the enlargement behavior of the emojis in the
types.TextMessage
. - InputClearMode
- Used to set Input clear mode when message is sent.
- SendButtonVisibilityMode
- Used to toggle the visibility behavior of the SendButton based on the TextField state inside the Input widget.
- TypingIndicatorMode
- Used to toggle the display of avatars, names or both on TypingIndicator.