chaos_chat_ui library
Classes
- AvatarContainer
- Avatar container for the the chat view uses a CircleAvatar widget as default which can be overriden by providing avatarBuilder property
- Bidi
- This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
- BidiFormatter
- Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
- ChaosChat
-
A complete chat UI which is inspired by
react-native-gifted-chat
Highly customizable and helps developing chat UI faster - ChaosChatState
- ChatInputToolbar
- ChatMessage
- A message data structure used by dash chat to handle messages and also to handle quick replies
- ChatUser
- ChatUser used to show distinguish between different people in a chat conversation or a chat group
- CustomScrollBehaviour
-
Custom scroll behaviour for the the
ChatView
. - DateBuilder
- DateFormat
- DateFormat is for formatting and parsing dates in a locale-sensitive manner.
- EnterIntent
- EventContainer
- Intl
-
The Intl class provides a common entry point for internationalization
related tasks. An Intl instance can be created for a particular locale
and used to create a date format via
anIntl.date()
. Static methods on this class are also used in message formatting. - LoadEarlierWidget
- MatchText
- A MatchText class which provides a structure for ParsedText to handle Pattern matching and also to provide custom Function and custom TextStyle.
- MessageContainer
- MessageContainer is just a wrapper around Text, Image component to present the message
- MessageListView
- MicroMoney
- Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64.
- NumberFormat
- Provides the ability to format a number in a locale-specific way.
- ParsedText
- Parse text and make them into multiple Flutter Text widgets
- QuickReplies
- Quick replies will contain all the replies that should be shown to the user
- QuickReply
- RegexOptions
- RegexOptions
- Reply
- Used for providing replies in quick replies
- ScrollToBottom
- ScrollToBottomStyle
- ShiftIntent
Constants
- emailPattern → const String
-
Email Regex - A predefined type for handling email matching
r"\b[\w\.-]+@[\w\.-]+\.\w{2,4}\b"
- phonePattern → const String
-
Phone Regex - A predefined type for handling phone matching
r"(\+?( |-|\.)?\d{1,2}( |-|\.)?)?(\(?\d{3}\)?|\d{3})( |-|\.)?(\d{3}( |-|\.)?\d{4})"
- urlPattern → const String
-
URL Regex - A predefined type for handling URL matching
r"[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:._\+-~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:_\+.~#?&\/\/=]*)"
Functions
-
toBeginningOfSentenceCase(
String input, [String locale]) → String - Convert a string to beginning of sentence case, in a way appropriate to the locale.