Skip to content

Instantly share code, notes, and snippets.

@ericgrandt
Created May 6, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericgrandt/38db5a711b2eac9e0b62bef1561e3386 to your computer and use it in GitHub Desktop.
Save ericgrandt/38db5a711b2eac9e0b62bef1561e3386 to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Flutter App'),
centerTitle: true,
elevation: 0,
),
body: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
child: Text('Some text'),
),
Container(
child: RaisedButton(
onPressed: () {
// Do something on press
},
child: Text('PRESS ME'),
),
),
],
),
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment