Created
September 24, 2018 01:51
-
-
Save diegoveloper/946d92e151b00b16c704cf15ef34ced8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_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