-
-
Save yaizudamashii/83e6adb747865d93a6d4ea2188f9df7a to your computer and use it in GitHub Desktop.
This file contains 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
currentUserStream.when( | |
data: (User user) { | |
return ProfileButton( | |
userImagePath: user.imageUrl, | |
onPressed: () { | |
Navigator.of(context).pushNamed( | |
AppRoutes.profile, | |
arguments: { 'uid': user.identifier }, | |
); | |
}, | |
); | |
}, | |
loading: () { | |
return Container(); | |
}, | |
error: (error, stackTrace) { | |
return Container(); | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment