2.0.0
stream_chat
ποΈ Breaking Changes from 1.5.3
- migrate this package to null safety
ConnectUserWithProvider
now requirestokenProvider
as a required param. (Removed from the constructor)client.disconnect()
is now divided into two different functionsclient.closeConnection()
-> for closing user websocket connection.client.disconnectUser()
-> for disconnecting user and resetting client state.
client.devToken()
now returns aToken
model instead ofString
.ApiError
is removed in favor ofStreamChatError
StreamChatError
-> parent type for all the stream errors.StreamWebSocketError
-> for user websocket related errors.StreamChatNetworkError
-> for network related errors.
client.queryChannels()
,channel.query()
options param is removed in favor of individual paramsoption.state
-> bool stateoption.watch
-> bool watchoption.presence
-> bool presence
client.queryUsers()
options param is removed in favor of individual paramsoption.presence
-> bool presence
- Migrate this package to null safety
- Added typed filters
π Fixed
- #369: Client does not return without internet connection
- several minor fixes
- performance improvements
β Added
- New
Location
enum is introduced for easily changing the client location/baseUrl. - New
client.openConnection()
andclient.closeConnection()
is introduced to connect/disconnect user ws connection. - New
client.partialUpdateMessage
andchannel.partialUpdateMessage
methods connectWebSocket
parameter in connect user calls to use the client in "connection-less" mode.
π Changed
baseURL
is now deprecated in favor of usingLocation
to change data location.
stream_chat_flutter
ποΈ Breaking Changes from 1.5.4
-
Migrate this package to null safety
-
Renamed
ChannelImage
toChannelAvatar
-
Updated
StreamChatThemeData.reactionIcons
to accept custom builder -
Renamed
ColorTheme
properties to reflect the purpose of the colorsColorTheme.black
->ColorTheme.textHighEmphasis
ColorTheme.grey
->ColorTheme.textLowEmphasis
ColorTheme.greyGainsboro
->ColorTheme.disabled
ColorTheme.greyWhisper
->ColorTheme.borders
ColorTheme.whiteSmoke
->ColorTheme.inputBg
ColorTheme.whiteSnow
->ColorTheme.appBg
ColorTheme.white
->ColorTheme.barsBg
ColorTheme.blueAlice
->ColorTheme.linkBg
ColorTheme.accentBlue
->ColorTheme.accentPrimary
ColorTheme.accentRed
->ColorTheme.accentError
ColorTheme.accentGreen
->ColorTheme.accentInfo
-
ChannelListCore
options property is removed in favor of individual propertiesoptions.state
-> bool stateoptions.watch
-> bool watchoptions.presence
-> bool presence
-
UserListView
options property is removed in favor of individual propertiesoptions.presence
-> bool presence
-
Renamed
ImageHeader
toGalleryHeader
-
Renamed
ImageFooter
toGalleryFooter
-
MessageBuilder
andParentMessageBuilder
signature is now
typedef MessageBuilder = Widget Function(
BuildContext,
MessageDetails,
List<Message>,
MessageWidget defaultMessageWidget,
);
the last parameter is the default MessageWidget
You can call .copyWith
to customize just a subset of properties
β Added
- Added video compress options (frame and quality) to
MessageInput
- TypingIndicator now has a property called
parentId
to show typing indicator specific to threads - #493: add support for messageListView header/footer
MessageWidget
accepts auserAvatarBuilder
- Added pinMessage ui support
- Added
MessageListView.threadSeparatorBuilder
property - Added
MessageInput.onError
property to allow error handling - Added
GalleryHeader/GalleryFooter
theme classes
π Fixed
- #483: Keyboard covers input text box when editing
message - Modals are shown using the nearest
Navigator
to make using the SDK easier in a nested navigator use case - #484: messages don't update without a reload
MessageListView
not rendering if the user is not a member of the channel- Fix
MessageInput
overflow when there are no actions - Minor fixes and improvements
stream_chat_flutter_core
ποΈ Breaking Changes from 1.5.3
- migrate this package to null safety
channelsBloc.queryChannels()
,ChannelListCore
options param/property is removed in favor of individual params/propertiesoptions.state
-> bool stateoptions.watch
-> bool watchoptions.presence
-> bool presence
usersBloc.queryUsers()
,UserListCore
options param/property is removed in favor of individual params/propertiesoptions.presence
-> bool presence
β Added
- Monitor connection using
connectivity_plus
package
π Fixed
- Minor fixes
- Performance improvements
stream_chat_persistence
- Migrate this package to null safety
- Minor fixes and improvements