v0.7.0
Pre-release
Pre-release
faye_dart
0.1.1+1
Changelog
- FIX: implement Equatable on
FayeClient
. With this change, if you fetch your client from anInheritedWidget
for example,updateShouldNotify
doesn't trigger every time. - NEW: expose connexion status stream
Stream<FayeClientState>
via theSubscription
class to check if the Faye client is unconnected, connecting, connected or disconnected, and act accordingly.
stream_feed
0.5.1
Changelog
- UPSTREAM(realtime): version bump. You can now listen to connexion status in the
Subscription
class. For example:
final subscription = await feed.subscribe();
final subscriptionStatus = subscription.stateStream;
- NEW(realtime): you can now adjust log level when subscribing
- FIX: implement Equatable on
StreamFeedClient
. With this change, if you fetch your client from anInheritedWidget
for example,updateShouldNotify
doesn't trigger every time.
stream_feed_flutter_core
0.7.0
Changelog
- FIX:
FeedProvider
inherited widget had an issue with theupdateShouldNotify
being triggered everytime. This has been fixed via the llc, being bumped to 0.5.1. - UPSTREAM(realtime): version bump
- BREAKING:
onAddActivity
signature changed. The named parameterdata
changed fromMap<String, String>?
toMap<String, Object>?
. - BREAKING: Refactors all of our builder methods to return data and not be opinionated about widgets in Core package
new: Various additional code documentation added - NEW: new model and convenient extensions for the
UploadController
AnAttachment
model to convert aMediaUri
TO aMap<String, Object?>
to send as an
extraData
along an activity or a reaction. For example:
final bloc = FeedProvider.of(context).bloc;
final uploadController = bloc.uploadController;
final extraData = uploadController.getMediaUris()?.toExtraData();
await bloc.onAddReaction( kind: 'comment', data: extraData, activity: parentActivity, feedGroup: feedGroup );
The attachment model is also useful to convert FROM extraData in an activity or reaction via the toAttachments
extension. For example:
final attachments = activity.extraData?.toAttachments()