Skip to content
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

167 ajouter photos dans firebase #191

Merged
merged 14 commits into from
Sep 6, 2022
Merged

Conversation

chloefont
Copy link
Contributor

No description provided.

@chloefont chloefont added enhancement New feature or request frontend labels Sep 6, 2022
@chloefont chloefont self-assigned this Sep 6, 2022
@chloefont chloefont linked an issue Sep 6, 2022 that may be closed by this pull request
Copy link
Contributor

@LucaCoduriV LucaCoduriV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, juste un petit truc à changer

@@ -70,10 +75,29 @@ class AuthProvider extends ChangeNotifier {
notifyListeners();
}

// Return the profile pic URL
Future<String?> uploadProfilePic(XFile? pic, String userUid) async {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je n'aurais pas mis cette fonction ici mais c'est pas grave

imagePath:
'assets/images/default_user_pic.png', //TODO à changer quand on aura les photos
imagePath: _clients[index].photoUrl ??
'https://firebasestorage.googleapis.com/v0/b/pdg-otcare-72f5c.appspot.com/o/images%2Fdiary%2Fdefault_user_pic.png?alt=media&token=258f5435-e80c-4847-9572-9a4dd669a649',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Utilise une image venant des assets à la place

defaultUserPic: "assets/images/default_user_pic.png",
showActionButton: !isAdmin,
defaultMealPic:
"https://firebasestorage.googleapis.com/v0/b/pdg-otcare-72f5c.appspot.com/o/images%2Fdiary%2Fbreakfast.jpg?alt=media&token=c8e56e6d-a303-4c31-9ba1-1de5a3ebb013",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ici aussi

Copy link
Contributor

@LucaCoduriV LucaCoduriV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niquel ! 👌

@LucaCoduriV LucaCoduriV merged commit 40a932d into main Sep 6, 2022
@LucaCoduriV LucaCoduriV deleted the 167-ajouter-photos-dans-firebase branch September 6, 2022 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ajouter photos dans firebase
2 participants