Skip to content

Instantly share code, notes, and snippets.

@WillyShakes
Created February 21, 2018 06:07
Show Gist options
  • Save WillyShakes/8ee123280a010ebed4740d6f9d679f7f to your computer and use it in GitHub Desktop.
Save WillyShakes/8ee123280a010ebed4740d6f9d679f7f to your computer and use it in GitHub Desktop.
UI of the flutter auth application
widget = new Padding(
padding: new EdgeInsets.all(32.0),
child: new Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Text(
'Welcome to FlutterAuth,',
style: DefaultTextStyle.of(context).style.apply(fontSizeFactor: 1.5),),
new Text('Login to continue'),
new Center(
child: new Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
new Padding(
padding: new EdgeInsets.symmetric(vertical: 160.0),
child:
new InkWell(child:
new Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
new Image.asset(
'assets/instagram.png',
height: 50.0,
fit: BoxFit.cover,
),
new Text('Continue with Instagram')
],
),onTap: _login,)
),
]
),
),
]
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment