-
-
Save MarcinusX/20bfda244b473652c7eb620b7cd0d15a to your computer and use it in GitHub Desktop.
This file contains 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
class InputPage extends StatelessWidget { | |
... | |
Widget _buildCards(BuildContext context) { | |
return Padding( | |
padding: EdgeInsets.only( | |
left: 14.0, | |
right: 14.0, | |
top: screenAwareSize(32.0, context), | |
), | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
child: Column( | |
children: <Widget>[ | |
Expanded(child: _tempCard("Gender")), | |
Expanded(child: _tempCard("Weight")), | |
], | |
), | |
), | |
Expanded(child: _tempCard("Height")) | |
], | |
), | |
); | |
} | |
Widget _tempCard(String label) { | |
return Card( | |
child: Container( | |
width: double.infinity, | |
height: double.infinity, | |
child: Text(label), | |
), | |
); | |
} | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment