- Update dependencies and example
- Fix scroll controller not attached warning. Thanks @fikretsengul for reporting the bug!
- Fix right margin on input's progress indicator
- Update dependencies
- Added
emptyState
that allows you to customize what the user sees when there are no messages. Thanks @AndreHaueisen for the PR! - Added Korean localization. Thanks @ChangJoo-Park for the PR!
- Can't send spaces anymore. Thanks @kwamerex101 for reporting the bug!
- Added
onTextChanged
callback to detect when user is typing. Thanks @AndreHaueisen for the PR! - Added
dateFormat
andtimeFormat
allowing user to customize the date and time visible between messages. Thanks @AndreHaueisen for the PR! - Added
customDateHeaderText
allowing to pass and arbitrary string visible between messages. See the documentation in the code for more info.
- Remove automatic scroll to bottom for incoming messages
- [WEB] Add shortcuts to send messages on
enter
press
- The text inside text messages is now selectable. Thanks @AndreHaueisen for the PR!
- Scroll to bottom when new message is added. Thanks @jlubeck for reporting!
- Minor change to make it easier to focus the input field by making the entire composition area tappable. Thanks @muncman for the PR!
Export ChatList
class
This release marks a major chat architecture overhaul based on a community feedback. In the future we don't expect such big changes in one release and will try to do backwards compatible code as much as possible.
Breaking changes:
- BREAKING CHANGE: [FileMessage]
fileName
is renamed toname
- BREAKING CHANGE: [ImageMessage]
imageName
is renamed toname
- BREAKING CHANGE: [Messages]
authorId
is replaced withauthor
to support avatars and names inside the chat - BREAKING CHANGE: [Messages]
timestamp
is renamed tocreatedAt
. All timestamps are inms
now. - BREAKING CHANGE: [Status]
read
is renamed toseen
- BREAKING CHANGE: [User]
avatarUrl
is renamed toimageUrl
- New
custom
andunsupported
message types. First one is used to build any message you want, second one is to support backwards compatibility
New features:
- Ability to display user name & avatar,
showUserAvatars
andshowUserNames
- Automatic messages animation
- Pagination,
onEndReached
(use this function to load more items, should be async to correctly show loading indicator),onEndReachedThreshold
(value between 0 and 1, where 1 indicates that loading should start when all previous items are visible and 0.5 indicates half of items are visible, defaults to 0.75),isLastPage
(if true loading indicator will not be shown) buildCustomMessage
to build anything you want. Can be improved to modify bubble, PRs are open :)- Time is moved to headers
- Theme with more customizations
Theme migration guide:
attachmentButtonIcon
,deliveredIcon
,documentIcon
,errorIcon
,seenIcon
,sendButtonIcon
type changeString
->Widget
body1
replaced withemptyChatPlaceholderTextStyle
,inputTextStyle
,receivedMessageBodyTextStyle
,sentMessageBodyTextStyle
body2
replaced withreceivedMessageLinkDescriptionTextStyle
,sentMessageLinkDescriptionTextStyle
subtitle1
replaced withreceivedMessageLinkTitleTextStyle
,sentMessageLinkTitleTextStyle
subtitle2
andsubtitle2Color
are replaced withdateDividerTextStyle
caption
andcaptionColor
are replaced withreceivedMessageCaptionTextStyle
,sentMessageCaptionTextStyle
primaryTextColor
replaced withreceivedMessageDocumentIconColor
,sentMessageDocumentIconColor
secondaryTextColor
replaced withreceivedMessageBodyTextStyle
- Disable link preview if
onPreviewDataFetched
is not specified
- Update dependencies
- Update dependencies
- Additional URL preview bug fixes. Thanks @jlubeck for reporting!
- Update to Flutter 2.2
- Fix various URL preview bugs (see https://pub.dev/packages/flutter_link_previewer/changelog)
- Add an option to disable URL preview. Thanks @Elementarereigniss for the PR!
- Add portugese localization. Thanks @BerkSpar for the PR!
- Update dependencies
- BREAKING CHANGE:
onFilePressed
is replaced withonMessageTap
to support tap event for different message types. See usage example. - Added
onMessageLongPress
callback, similar to theonMessageTap
. - Added
disableImageGallery
parameter to optionally disable the image gallery on the image tap. - Added
subtitle2Color
to the theme, which is used to color date dividers in the chat. Thanks @sarbogast for the PR! - Fixed issues with link preview
- Hide the attachment button if
onAttachmentPressed
is not passed
- Public release
- Update example
- Update types
- Update dependencies
- Add documentation comments
- Replace universal IO with conditional import
- Update dependencies
- Use universal IO
- Migrate to Flutter 2
- Add gallery
- Update types
- Add empty chat placeholder
- Fix images
- Add attchment uploading handling
- Updated to use partial
- Fixed missing null check
- Dependency update
- Fixed missing null check
- Connected with link preview
- Remove cached image
- Add time and statuses
- Update LICENSE
- Update types
- Update types
- Fix image and file name overflow
- Add file support
- Moved types to the dedicated package
- Fix image support
- Added image support
- Added example
- Initial release