Skip to content

Instantly share code, notes, and snippets.

@shubie
Created September 13, 2018 13:55
Show Gist options
  • Save shubie/873791591d78ad0787d0a2d7fdd32bad to your computer and use it in GitHub Desktop.
Save shubie/873791591d78ad0787d0a2d7fdd32bad to your computer and use it in GitHub Desktop.
Column makeMenuItem(icon, title) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
mainAxisSize: MainAxisSize.min,
verticalDirection: VerticalDirection.down,
children: <Widget>[
Center(
child: Icon(
icon,
size: 80.0,
color: Colors.white,
)),
SizedBox(height: 10.0),
new Center(
child: new Text(title,
style: new TextStyle(
fontSize: 18.0,
color: Colors.white,
fontWeight: FontWeight.bold)),
)
],
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment