Skip to content

Instantly share code, notes, and snippets.

@MarcinusX
Created August 24, 2018 15:45
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 MarcinusX/20bfda244b473652c7eb620b7cd0d15a to your computer and use it in GitHub Desktop.
Save MarcinusX/20bfda244b473652c7eb620b7cd0d15a to your computer and use it in GitHub Desktop.
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