my_chat_ui library

Classes

AttachmentButton
A class that represents attachment button widget
Chat
Entry widget, represents the complete chat
ChatL10n
Base chat l10n containing all required variables to provide localized copy. Extend this class if you want to create a custom l10n.
ChatL10nEn
English l10n which extends ChatL10n
ChatL10nEs
Spanish l10n which extends ChatL10n
ChatL10nPl
Polish l10n which extends ChatL10n
ChatL10nPt
Portuguese l10n which extends ChatL10n
ChatL10nRu
Russian l10n which extends ChatL10n
ChatL10nUk
Ukrainian l10n which extends ChatL10n
ChatList
Animated list which handles automatic animations and pagination
ChatTheme
Base chat theme containing all required variables 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. Hides send button when text field is empty.
Message
NewLineIntent
SendButton
A class that represents send button widget
SendMessageIntent
TextMessage
A class that represents text message widget with optional link preview

Constants

COLORS → const List<Color>
See ChatTheme.userAvatarNameColors
DARK → const Color
Dark
ERROR → const Color
Error
NEUTRAL_0 → const Color
N0
NEUTRAL_2 → const Color
N2
NEUTRAL_7 → const Color
N7
NEUTRAL_7_WITH_OPACITY → const Color
N7 with opacity
PRIMARY → const Color
Primary
SECONDARY → const Color
Secondary
SECONDARY_DARK → const Color
Secondary dark

Functions

formatBytes(int size, [int fractionDigits = 2]) String
Returns text representation of a provided bytes value (e.g. 1kB, 1GB)

Typedefs

MessageContainBaseBuild = Widget Function(Widget widget)
Base widget for all message types in the chat. Renders bubbles around messages, delivery time and status. Sets maximum width for a message for a nice look on larger screens.