Feature/show activity list #4
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Submit a pull request
Closes FLU-218
Closes FLU-219
related: GetStream/stream-core-flutter#3
CLA
Description of the pull request
This is a big PR which adds a lot of boilerplate logic.
Sample app:
Feeds SDK:
Feeds SDK is heavily inspired by the iOS SDK.
We have the FeedsClient that everybody has to use, it's connected to a userId and you have to call
client.connect()to connect the websocket.With
client.feed(query)you create a feed object. By doingfeed.getOrCreate()it will do an API call and you can start listening to updates.The
feed.stateNotifieris responsible for updating the state of the feed, for example using the websocket.The
FeedWsHandleris the one actually listening to websocket events and calling the stateNotifier to update when needed.The
stateNotifier.onReactionAddedand other similar methods can be used directly as well based on user interaction. Similar to thechangeHandleron iOS.Mapping between data and domain objects is done in the mappers file. Updating domain objects (using copyWith and immutable lists) is mostly done in the model classes directly.
To run this you'll need to have a local copy of the core sdk with code from this PR: GetStream/stream-core-flutter#3
Screenshots / Videos
flutter.feeds.demo.mov