Last active
June 12, 2019 09:54
-
-
Save timbergus/adabf456ec380eace05bd79261760ba1 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 ? Container() : RaisedButton( | |
child: Text('Login'), | |
color: Colors.blue[300], | |
onPressed: () async { | |
try { | |
_user = await _auth.signInWithEmailAndPassword( | |
email: '[email protected]', | |
password: 'password', | |
); | |
setState(() { | |
logged = true; | |
}); | |
} catch (e) { | |
print(e); | |
} | |
}, | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment