Skip to content

Instantly share code, notes, and snippets.

@shubie
Created December 12, 2019 18:37
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 shubie/eefba5129259c6c94f980f0874cb0142 to your computer and use it in GitHub Desktop.
Save shubie/eefba5129259c6c94f980f0874cb0142 to your computer and use it in GitHub Desktop.
Widget listItemContainer(String title, String value) => Container(
margin: EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
padding: EdgeInsets.symmetric(vertical: 10.0),
width: double.infinity,
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(height: 5),
Text(
title,
style: TextStyle(
fontSize: 12,
fontWeight: FontWeight.bold,
color: Color.fromRGBO(196, 196, 196, 1)),
),
SizedBox(height: 6),
Text(
value,
style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
),
SizedBox(height: 5),
],
),
decoration: BoxDecoration(
border: new Border(
bottom: new BorderSide(width: 1.0, color: Color(0xffC4C4C4)))),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment