Skip to content

Instantly share code, notes, and snippets.

@diegoveloper
Created September 24, 2018 01:51
Show Gist options
  • Save diegoveloper/946d92e151b00b16c704cf15ef34ced8 to your computer and use it in GitHub Desktop.
Save diegoveloper/946d92e151b00b16c704cf15ef34ced8 to your computer and use it in GitHub Desktop.
_getSizes() {
}
_getPositions(){
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
),
body: Column(
children: <Widget>[
Flexible(
flex: 2,
child: Container(
color: Colors.red,
),
),
Flexible(
flex: 1,
child: Container(
color: Colors.purple,
),
),
Flexible(
flex: 3,
child: Container(
color: Colors.green,
),
),
Spacer(),
Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
MaterialButton(
elevation: 5.0,
padding: EdgeInsets.all(15.0),
color: Colors.grey,
child: Text("Get Sizes"),
onPressed: _getSizes,
),
MaterialButton(
elevation: 5.0,
color: Colors.grey,
padding: EdgeInsets.all(15.0),
child: Text("Get Positions"),
onPressed: _getPositions,
)
],
),
)
],
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment