my_chat_ui library Null safety

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
[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)
NEUTRAL_0 → const Color
N0
Color(0xff1d1c21)
NEUTRAL_2 → const Color
N2
Color(0xff9e9cab)
NEUTRAL_7 → const Color
N7
Color(0xffffffff)
NEUTRAL_7_WITH_OPACITY → const Color
N7 with opacity
Color(0x80ffffff)
PRIMARY → const Color
Primary
Color(0xff6f61e8)
SECONDARY → const Color
Secondary
Color(0xfff5f5f7)
SECONDARY_DARK → 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)

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.