dimanche 31 décembre 2017

Updating Flutter page after setState()

I have a user follow/unfollow page that searches Firebase for a list of followers and returns a Boolean if their usedID is found. The bool is then set in a separate function that changes a public bool. The trouble is that my Widget/Scaffold doesn't update here...

friends == true ? new RaisedButton "unfollow" : new RaisedButton "follow"

Any ideas? I'll update with exact code once later.

Aucun commentaire:

Enregistrer un commentaire