-
-
Save sbis04/7905219556820eed8b244270d6bb567a 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
// Code for the Sign in button, present in the top bar | |
InkWell( | |
child: userEmail == null | |
? Text( | |
'Sign in', | |
style: TextStyle( | |
color: _isHovering[3] ? Colors.white : Colors.white70, | |
), | |
) | |
: Row( | |
children: [ | |
CircleAvatar( | |
radius: 15, | |
backgroundImage: imageUrl != null | |
? NetworkImage(imageUrl) | |
: null, | |
child: imageUrl == null | |
? Icon(Icons.account_circle, size: 30) | |
: Container(), | |
), | |
Text( | |
name ?? userEmail, | |
style: TextStyle( | |
color: _isHovering[3] | |
? Colors.white | |
: Colors.white70, | |
), | |
), | |
FlatButton( | |
// ... | |
onPressed: () {}, | |
child: Text( | |
'Sign out', | |
style: TextStyle( | |
fontSize: 14, | |
color: Colors.white, | |
), | |
), | |
), | |
], | |
), | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment