Repository navigation
2.0.0-dev.11
Pre-release
Pre-release
·
133 commits
to main
since this release
- Enhanced pagination functionality for the
ChatAnimatedListwidget. If you utilize thepaginationThresholdparameter, please refer to the comments in theChatAnimatedListwidget implementation for detailed guidance. - Updated the
Messagemodel to renameparentIdtoreplyToMessageId - The
createdAtfield is now optional in the message model - The
sendingfield has been removed from the message model; instead, you can setsending: truein the metadata of the Message model to achieve the same functionality. - The
isOnlyEmojiproperty has been removed from the text message model; to indicate that a message contains only emojis, useisOnlyEmoji: truein the metadata of the text message. - The
firstNameandlastNamefields in theUsermodel have been consolidated into a singlenamefield for improved simplicity. - The default sentinel values that previously allowed users to set specific properties to
nullhave been removed. Instead, please useColors.transparent,BorderRadius.zero, orTextStyle()to achieve the desired effect. Passingnullwill now use the standard configuration.
- Added a
headerWidgetto theChatMessagewidget, enabling the display of a custom header for each message. You have the flexibility to control the header's position; wrap it with aCenterwidget for centering. - Introduced new parameters:
sentMessageColumnAlignment,receivedMessageColumnAlignment,sentMessageRowAlignment, andreceivedMessageRowAlignmentfor theChatMessagewidget. These allow for precise control over the positioning ofleadingWidget,trailingWidget,topWidget, andbottomWidget. Ensure correct defaults are set for proper alignment, especially when using thetopWidget. - Introduced
TextStreamMessagetype to support text streaming - Added
textStreamMessageBuilderto theBuildersclass to support text streaming UI widget
Other changes
- Introduced
MessageIDandUserIDtypedefs to provide clearer context, while maintaining their underlying type asStrings - Do not show status for received messages
- Added example for text streaming