Added method to the home bloc to retrieve the photo url of the user
This commit is contained in:
parent
d97b542238
commit
8e378c0e8e
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ class HomeBloc {
|
|||
_firestore.getUserTasks(user.email).pipe(_tasks);
|
||||
}
|
||||
|
||||
Future<String> getUserAvatarUrl() async {
|
||||
final user = await _auth.currentUser;
|
||||
return user.photoUrl;
|
||||
}
|
||||
|
||||
void markTaskAsDone(TaskModel task) async {
|
||||
_firestore.updateTask(
|
||||
task.id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue