-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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
lib/screens/client_list.dart
Outdated
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', |
There was a problem hiding this comment.
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
lib/screens/diary.dart
Outdated
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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ici aussi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Niquel ! 👌
No description provided.