Skip to content

Instantly share code, notes, and snippets.

@kleberksms
Created July 23, 2020 05:01
Show Gist options
  • Save kleberksms/2b0e8be3a671836cd214efb24ceb01ad to your computer and use it in GitHub Desktop.
Save kleberksms/2b0e8be3a671836cd214efb24ceb01ad to your computer and use it in GitHub Desktop.
Container(
child: Table(
border: TableBorder(
left: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
right: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
bottom: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
top: BorderSide(
width: 1,
color: Color(0xFFB1B1B1),
style: BorderStyle.solid,
),
),
columnWidths: {
0: FlexColumnWidth(2.0),
1: FlexColumnWidth(1.0),
},
children: [
TableRow(
decoration: BoxDecoration(
color: Color(0xFF2D59A2),
),
children: [
TableCell(
child: Padding(
padding: EdgeInsets.only(
left: 10,
bottom: 2.5,
top: 2.5,
right: 10,
),
child: Text(
'01/01/2020 12:35 NFC-e #3',
style: new TextStyle(
fontSize: 15,
color: Colors.white,
fontFamily: 'Roboto-Bold',
),
textAlign: TextAlign.left,
),
),
),
TableCell(
child: Padding(
padding: EdgeInsets.only(
left: 10,
bottom: 2.5,
top: 2.5,
right: 10,
),
child: Align(
alignment: Alignment.centerRight,
child: Text(
"R\$ 100,00",
style: new TextStyle(
fontSize: 15,
color: Colors.white,
fontFamily: 'Roboto-Bold',
),
),
),
),
),
],
),
TableRow(
decoration: BoxDecoration(
color: Color(0xFF2D59A2),
),
children: [
TableCell(
child: Padding(
padding: EdgeInsets.only(
left: 10,
bottom: 2.5,
top: 2.5,
right: 10,
),
child: Text(
'Festival Centro Cívico - Loja 03',
style: new TextStyle(
fontSize: 12,
color: Colors.white,
fontFamily: 'Roboto',
),
textAlign: TextAlign.left,
),
),
),
TableCell(
child: Padding(
padding: EdgeInsets.only(
left: 10,
bottom: 2.5,
top: 2.5,
right: 10,
),
child: Align(
alignment: Alignment.centerRight,
child: Text(
"12 Items",
style: new TextStyle(
fontSize: 12,
color: Colors.white,
fontFamily: 'Roboto',
),
),
),
),
),
],
),
],
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment