Skip to content

2.2.0

Compare
Choose a tag to compare
@imtoori imtoori released this 25 Aug 15:19
cf8a028

stream_chat

2.2.0

🐞 Fixed

  • Fixed channel.markAllRead throwing failed host lookup.

✅ Added

  • User and OwnUser classes now have an image property. Setting an image will also set the 'image' key on extraData, so user.image and user.extraData['image'] is the same.
  • User and OwnUser classes now have a name property. Setting a name will also set the 'name' key on extraData, so user.name and user.extraData['name'] is the same.
  • Channel class now has extra image getter and setter. As well as an updateImage to do a partial update after a channel has been initialized.
  • Channel class now has extra name getter and setter. As well as an updateName 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:
    Added StreamChatThemeData.placeholderUserImage for building a widget when the UserAvatar 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 the attachmentLimit is exceeded.
    This will override the default error alert behaviour.
  • Added MessageInput.attachmentButtonBuilder and MessageInput.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 now AvatarThemeData
  • ChannelHeaderTheme is now ChannelHeaderThemeData
  • ChannelListHeaderTheme is now ChannelListHeaderThemeData
  • ChannelListViewTheme is now ChannelListViewThemeData
  • ChannelPreviewTheme is now ChannelPreviewThemeData
  • MessageInputTheme is now MessageInputThemeData
  • MessageListViewTheme is now MessageListViewTheme
  • MessageSearchListViewTheme is now MessageSearchListViewThemeData
  • MessageTheme is now MessageThemeData
  • UserListViewTheme is now UserListViewThemeData
  • Updated core dependency.

🐞 Fixed

  • Fixed MessageInput textField case where input 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 if StreamChannel.initialMessageId is set.
  • Fixed null check errors when accessing message.text in MessageWidget and MessageListView; 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.
    • 'रिप्लाई' -> 'जवाब दें'
    • 'तस्वीरें' -> 'फ़ोटोज'
    • 'बिता हुआ कल' -> 'कल'
    • 'चैनल मौन है' -> 'चैनल म्यूट है'