The second futurebuilder gives anomalous behaviour, but why?
Actually, I work on a search screen page where the first futurebuilder is responsible for showing all usernames and profilepic when searching by username, and the second futurebuilder is responsible for showing all posts when the end user just normally opens the search screen page, just like Instagram APK.
second futurebuilder gives anomalous behaviour but why?
Actually I work on search screen page where first futurebuilder is responsible for showing all usernames and profilepic when searching by username and second futurebuilder is responsible for showing all posts when end user just normally open the search screen page just like instagram apk.
But problem is when I’m going to search for username, first futurebuilder doesn’t work properly as it’s snapshot become the same as the second’s snapshot.
I don’t know why? that’s why I’m getting “photoUrl” does not exist within the DocumentSnapshotPlatform error as second’s snapshot does not contain “photoUrl” field. Please suggest some solution.
Difficulty updating UI after removing item from list in Flutter using FutureBuilder and setState
I’m facing an issue with updating the UI in my Flutter app after removing an item from a list. I’m using a FutureBuilder
to fetch data asynchronously, and I want to allow users to remove items from a list of favorites. However, when I call setState
to remove an item from the list and update the UI, it doesn’t reflect the changes.