Skip to content

Instantly share code, notes, and snippets.

@shubie
Created January 3, 2019 15:49
Show Gist options
  • Save shubie/e71b6cf6cb34ac741b9b8621573b3513 to your computer and use it in GitHub Desktop.
Save shubie/e71b6cf6cb34ac741b9b8621573b3513 to your computer and use it in GitHub Desktop.
Container accountItems(
String item, String charge, String dateString, String type,
{Color oddColour = Colors.white}) =>
Container(
decoration: BoxDecoration(color: oddColour),
padding:
EdgeInsets.only(top: 20.0, bottom: 20.0, left: 5.0, right: 5.0),
child: Column(
children: <Widget>[
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(item, style: TextStyle(fontSize: 16.0)),
Text(charge, style: TextStyle(fontSize: 16.0))
],
),
SizedBox(
height: 10.0,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: <Widget>[
Text(dateString,
style: TextStyle(color: Colors.grey, fontSize: 14.0)),
Text(type, style: TextStyle(color: Colors.grey, fontSize: 14.0))
],
),
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment