firebase / FirebaseUI-Flutter

Apache License 2.0
101 stars 91 forks source link

🐛 [firebase_ui_auth] User unable to add photo to ProfileScreen page if registering via email and password #50

Closed hdbookie closed 8 months ago

hdbookie commented 1 year ago

Bug report

Describe the bug I was exploring using this package for a profile/account page and I'm satisified with it for google sign in, but if a user registers via email and password they don't have an option to upload their own photo.

Steps to reproduce

Steps to reproduce the behavior:

  1. Register a user with the package with email and password
  2. Navigate to the ProfileScreen page from the package
  3. You will be unable to add a photo

Expected behavior

I expected a photo add button on the blank photo.

darshankawar commented 1 year ago

Thanks for the report. Seeing same behavior as reported.

darshankawar commented 1 year ago

/cc @lesnitsky

hdbookie commented 1 year ago

I'd love to help out and contribute, but I'd need a little guidance.

lesnitsky commented 1 year ago

That one is a bit tricky, since firebase_auth does not allow changing profile photo URL (it comes from OAuth providers only), but we have plans on implementing firebase_storage related widgets, after we have those it would be possible to update the avatar with some additional configuration.

Tobicic commented 8 months ago

One year later ... any good news about changing profile photo url?

lesnitsky commented 8 months ago

ProfileScreen now has an avatar property that could be passed down. firebase_ui_storage has a StorageImage that could be used to show custom user avatars. I don't think there's much left to do from the firebase_ui_auth perspective, since firebase_auth doesn't allow updating photoURL of the User