firebase_user_avatar_flutter icon indicating copy to clipboard operation
firebase_user_avatar_flutter copied to clipboard

streamBuilder vs Consumer / changeNotifier

Open ninest opened this issue 5 years ago • 2 comments

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?

ninest avatar Jan 22 '20 14:01 ninest

Yes, you can. I have implemented authbuilderwidget with StreamProvider. It works well.

talatkuyuk avatar Apr 11 '20 12:04 talatkuyuk

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!

mdev88 avatar Mar 25 '21 16:03 mdev88