firebase_user_avatar_flutter
firebase_user_avatar_flutter copied to clipboard
streamBuilder vs Consumer / changeNotifier
For managing authState
, why do you use a streamBuilder
? Is not not suitable to use a Consumer()
?
I just thought that that if you are using Provider, there is no need to have streamBuilder
as the parent widget. Am I missing something? Can the authState
widget be made without streamBuilder
?
Yes, you can. I have implemented authbuilderwidget with StreamProvider. It works well.
I am struggling with this exact thing, plus Provider 5.0.0 changed some implementations and broke things. Can anyone provide some up to date code for this app?
Thanks!