Skip to content

Instantly share code, notes, and snippets.

@iterpugov
Last active April 23, 2020 09:23
Show Gist options
  • Save iterpugov/df0c727f7b50671d5c1eeb10fbc676e8 to your computer and use it in GitHub Desktop.
Save iterpugov/df0c727f7b50671d5c1eeb10fbc676e8 to your computer and use it in GitHub Desktop.
class LoginWidget extends StatefulWidget {
createState() => LoginWidgetState();
}
class LoginWidgetState extends State<LoginWidget> {
build() {
return Scaffold(
appBar: AppBar(
leading: IconButton(
onPressed: () => this.onGroupPressed(context),
icon: Image.asset("group-2.png"),
),
),
body: Container(
containerProps: "TODO",
child: Column(children: [
Text(
"Log in",
textAlign: TextAlign.x2,
),
Text(
"Welcome back. The galaxy awaits you.",
textAlign: TextAlign.x2,
),
Container(
containerProps: "TODO",
child: Column(children: [
TextField(todo: "decoration, maxlines, autocorrect"),
Container(
containerProps: "TODO", child: Column(children: [])),
TextField(todo: "decoration, maxlines, autocorrect"),
])),
FlatButton(
onPressed: () => this.onLoginPressed(context),
child: Text(
"LOG IN",
textAlign: TextAlign.x2,
),
),
FlatButton(
onPressed: () => this.onForgotYourPasswordPressed(context),
child: Text(
"Forgot your password?",
textAlign: TextAlign.x2,
),
),
])));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment