Skip to content

Instantly share code, notes, and snippets.

@aaronksaunders
Created June 4, 2019 17:52
Show Gist options
  • Save aaronksaunders/e74e414cbdae184f850bf6cec6151de0 to your computer and use it in GitHub Desktop.
Save aaronksaunders/e74e414cbdae184f850bf6cec6151de0 to your computer and use it in GitHub Desktop.
Markdium-Simple Firebase Login Flow in Flutter, Now Firebase
children: [
SizedBox(height: 20.0), // ⇐ NEW
Text( // ⇐ NEW
'Home Page Flutter Firebase Content',
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
),
SizedBox(height: 20.0), // ⇐ NEW
Text( // ⇐ NEW
`Welcome ${widget.currentUser.email}`,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
fontStyle: FontStyle.italic),
),
SizedBox(height: 20.0),
RaisedButton(
child: Text("LOGOUT"),
onPressed: () async {
await Provider.of(context).logout();
})
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment