When I go to an other profil, the number of the posts keep the value of the current user connected.
And the other data like Followers and Following is working.
====> Resolve :
Change your variable "postSnap" by :
var postSnap = await FirebaseFirestore.instance
.collection('posts')
.where('uid', isEqualTo: widget.uid)
.get();
When I go to an other profil, the number of the posts keep the value of the current user connected. And the other data like Followers and Following is working.
====> Resolve :
Change your variable "postSnap" by :