InstaDart-Flutter-Instagram-Clone icon indicating copy to clipboard operation
InstaDart-Flutter-Instagram-Clone copied to clipboard

Posts Not Showing on Feed Screen

Open ghost opened this issue 3 years ago • 1 comments

@Edenik

Please help me to fix this issue

setState(() => _isLoadingFeed = true);

List<Post> posts = await DatabaseService.getFeedPosts( 
    widget.currentUserId,
); 

//List<Post> posts = await DatabaseService.getAllFeedPosts();
setState(() {
    _posts = posts;
    _isLoadingFeed = false;
});

This doesn't show feeds after following users on feed screen

List<Post> posts = await DatabaseService.getFeedPosts( 
    widget.currentUserId,
); 

Whereas by enabling the commented part of code, I am getting feeds from all users instead of Custom photo feed based on who you follow

//List<Post> posts = await DatabaseService.getAllFeedPosts();

Thanks & Regards, Kurubaran Anandhan.

ghost avatar Mar 08 '21 14:03 ghost

i am facing same issue , please help us @Edenik

smamaHsn avatar Mar 23 '21 05:03 smamaHsn