We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onNewActivity
1 parent 69adad1 commit c42fae7Copy full SHA for c42fae7
sample_app/lib/screens/user_feed/user_feed_screen.dart
@@ -30,6 +30,11 @@ class _UserFeedScreenState extends State<UserFeedScreen> {
30
31
late final storiesFeed = client.feedFromId(
32
FeedId.stories(client.user.id),
33
+ onNewActivity: (query, activity, currentUserId) {
34
+ // By default new activities are added to the start of the list,
35
+ // but this is not what we want for stories
36
+ return InsertionAction.addToEnd;
37
+ },
38
);
39
40
late final userFeed = client.feedFromQuery(
0 commit comments