Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created September 23, 2018 19:12
Show Gist options
  • Save hitherejoe/620669cf4dfee8a5fc46bc87f827115c to your computer and use it in GitHub Desktop.
Save hitherejoe/620669cf4dfee8a5fc46bc87f827115c to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return new Scaffold(
body: new Container(
color: Colors.white,
margin: const EdgeInsets.only(bottom: 24.0),
child: new Column(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
new Expanded(
child: new Image.asset('assets/hashtag.png',
scale: 2.0, width: 48.0, height: 48.0),
flex: 2,
),
new Expanded(
child: new Container(
margin: const EdgeInsets.only(left: 44.0, right: 44.0),
child: new Text(
AppLocalizations.of(context).welcomeMessage,
textAlign: TextAlign.center,
style: new TextStyle(fontWeight: FontWeight.normal),
),
),
flex: 2,
),
new RaisedButton(
child: new Text(AppLocalizations.of(context).connectWithGoogle,
style: new TextStyle(color: Colors.white)),
shape: const RoundedRectangleBorder(
borderRadius:
const BorderRadius.all(const Radius.circular(16.0)),
),
color: Colors.blueAccent,
onPressed: () {
_authenticateWithGoogle(context);
}),
],
),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment