Skip to content

Instantly share code, notes, and snippets.

@nparsons08
Created Dec 11, 2019
Embed
What would you like to do?
// mobile/lib/main.dart:65
@override
Widget build(BuildContext context) {
if (_account != null) {
// ... show full application once we're logged in
} else {
return Scaffold(
appBar: AppBar(
title: Text("The Stream"),
),
body: Builder(
builder: (BuildContext context) {
return Container(
padding: EdgeInsets.all(12.0),
child: Center(
child: Column(
children: [
TextField(
controller: _userController,
),
RaisedButton(
onPressed: () => _login(context),
child: Text("Login"),
),
],
),
),
);
},
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment