2.2.0
stream_chat
2.2.0
🐞 Fixed
- Fixed
channel.markAllRead
throwing failed host lookup.
✅ Added
User
andOwnUser
classes now have animage
property. Setting an image will also set the 'image' key onextraData
, souser.image
anduser.extraData['image']
is the same.User
andOwnUser
classes now have aname
property. Setting a name will also set the 'name' key onextraData
, souser.name
anduser.extraData['name']
is the same.Channel
class now has extraimage
getter and setter. As well as anupdateImage
to do a partial update after a channel has been initialized.Channel
class now has extraname
getter and setter. As well as anupdateName
to do a partial update after a channel has been initialized.- Added slow mode which allows a cooldown period after a user sends a message.
stream_chat_persistence
2.2.0
- Updated llc dependency
- Added support for message.i18n
- Added support for user.language
stream_chat_flutter_core
2.2.0
🛑️ Breaking Changes from 2.1.1
- Renamed
BetterStreamBuilder.loadingBuilder
to.noDataBuilder
🔄 Changed
BetterStreamBuilder.initialData
is now nullable/not-required.
🐞 Fixed
- #612
ChannelListView
pagination doesn't work after refresh
stream_chat_flutter
2.2.0
✅ Added
- #516:
AddedStreamChatThemeData.placeholderUserImage
for building a widget when theUserAvatar
image
is loading - Added a
backgroundColor
property to the following widgets:ChannelHeader
ChannelListHeader
GalleryHeader
GalleryFooter
ThreadHeader
- Added
MessageInput.attachmentLimit
in order to limit the no. of attachments that can be sent with a single message. - Added
MessageInput.onAttachmentLimitExceed
callback which will be called when theattachmentLimit
is exceeded.
This will override the default error alert behaviour. - Added
MessageInput.attachmentButtonBuilder
andMessageInput.commandButtonBuilder
for more customizations.
typedef ActionButtonBuilder = Widget Function(
BuildContext context,
IconButton defaultActionButton,
);
NOTE: The last parameter is the default
ActionButton
You can call.copyWith
to customize just a subset of properties.
- Added slow mode which allows a cooldown period after a user sends a message.
🔄 Changed
Theming has been upgraded! Most theme classes now have InheritedTheme
classes associated with
them, and have been upgraded with some goodies like lerp
functions. Here's the full naming
breakdown:
AvatarTheme
is nowAvatarThemeData
ChannelHeaderTheme
is nowChannelHeaderThemeData
ChannelListHeaderTheme
is nowChannelListHeaderThemeData
ChannelListViewTheme
is nowChannelListViewThemeData
ChannelPreviewTheme
is nowChannelPreviewThemeData
MessageInputTheme
is nowMessageInputThemeData
MessageListViewTheme
is nowMessageListViewTheme
MessageSearchListViewTheme
is nowMessageSearchListViewThemeData
MessageTheme
is nowMessageThemeData
UserListViewTheme
is nowUserListViewThemeData
- Updated core dependency.
🐞 Fixed
- Fixed
MessageInput
textField case whereinput
is not enabled if the file picked from the
camera is null. - Fixed date dividers position/alignment in non reversed
MessageListView
. - Fixed
MessageListView
not opening to the right initialMessage ifStreamChannel.initialMessageId
is set. - Fixed null check errors when accessing
message.text
inMessageWidget
andMessageListView
; this occurred when sending a message with no text.
stream_chat_localizations
1.1.0
✅ Added
- Added support for Spanish locale.
- Added support for Korean locale.
- Added support for Japanese locale.
- Added translations for cooldown mode.
- Added translations for attachmentLimitExceed.
🔄 Changed
- Some of the
Hindi
translations have been updated/changed for better understanding.- 'रिप्लाई' -> 'जवाब दें'
- 'तस्वीरें' -> 'फ़ोटोज'
- 'बिता हुआ कल' -> 'कल'
- 'चैनल मौन है' -> 'चैनल म्यूट है'