Created
October 6, 2019 18:27
-
-
Save adityadroid/4f0393f91ec74bbf2e466f724274ed58 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @override | |
| Future<void> updateProfilePicture(String profilePictureUrl) async { | |
| String uid = SharedObjects.prefs.getString(Constants.sessionUid); | |
| DocumentReference ref = fireStoreDb.collection(Paths.usersPath).document( | |
| uid); //reference of the user's document node in database/users. This node is created using uid | |
| var data = { | |
| 'photoUrl': profilePictureUrl, | |
| }; | |
| await ref.setData(data, merge: true); // set the photourl | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment