Relative Content

Tag Archive for flutterdartflutter-futurebuilder

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.