-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature to upload user image #143
Comments
Can I take this up? |
yess @adityathakurxd you can ! |
I'll unassign this @infiniteoverflow 😬 This could be a good issue for someone else to take up. |
@infiniteoverflow I want to take this issue but I won't find any thing regarding firebase realtime database in your project that how you store your users info in firebase data base ,so can you explain me what I have to do |
The link to the Google Services Files for Firebase is available in the README: https://drive.google.com/drive/folders/161WwprL9P_mHqdln_S0Zfm2bVnQSI1Dc?usp=sharing You might not get access to the console. Right now the project, if you look into the Profile section, uses the first letter of the first name as Avatar for the profile. This comes from the User object by Firebase auth. CircleAvatar(
radius: 30,
child: Text(
user.displayName.substring(0, 2).toUpperCase(),
style: TextStyle(
color: Styles.profileBar,
),
),
backgroundColor: Colors.white,
//backgroundImage: AssetImage('assets/images/Reading.png'),
), What I believe the steps of action here would be:
|
Make sure you also check the conversation on this PR: #146 |
yes I get what are you trying to say. but the thing is ,in this project where's the code that's stores the user info to firebase realtime database . because I want to refer the structure of user collection so that I can make changes to update userProfileUrl. and also in firebase storage where to store image is there any perticular location? |
As I mentioned, it uses the Firebase User object. If you look at the Home Screen, you'll find:
For both Realtime Database and Storage, you can using code create the required collection or bucket and save data to them. This is again my approach. Please wait on the repository moderators to provide details. |
is this issue still open ? i want to work on it |
Wont it be nice if the user can upload their pic in their profile ?
We need an option in the InfoScreen to upload an image, and when submitted, the image should be stored in Firebase Storage and its public URL appended to the user details in Firebase RealtimeDB.
If the user is signing-in using Social Auth, get the image link from the Account as use it as the profile pic.
The text was updated successfully, but these errors were encountered: