Last active
June 12, 2019 10:12
-
-
Save timbergus/8f02bea78be9b2e3073d495b04c0ee19 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
logged ? RaisedButton( | |
child: Text('Logout'), | |
color: Colors.red[300], | |
onPressed: () async { | |
try { | |
await _auth.signOut(); | |
setState(() { | |
logged = false; | |
}); | |
} catch (e) { | |
print(e); | |
} | |
}, | |
) : Container(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment