Skip to content

Instantly share code, notes, and snippets.

@patelronakp
Created March 31, 2021 18:16
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 patelronakp/ea45aeb4a640c8c185a2f8f1cf429d7c to your computer and use it in GitHub Desktop.
Save patelronakp/ea45aeb4a640c8c185a2f8f1cf429d7c to your computer and use it in GitHub Desktop.
Container(
decoration: BoxDecoration(
border: Border.all(
width: 1,
),
borderRadius: BorderRadius.all(Radius.circular(10)),
),
child: Table(
// border: TableBorder.all(
// color: Colors.black, width: 1.0, style: BorderStyle.solid),
border: TableBorder.symmetric(
inside: BorderSide(width: 2, color: Colors.black)),
defaultVerticalAlignment: TableCellVerticalAlignment.middle,
columnWidths: {
0: FlexColumnWidth(4),
1: FlexColumnWidth(1),
},
children: [
TableRow(
decoration: BoxDecoration(
color: Colors.blue[100],
border: Border.all(
width: 1,
),
borderRadius: BorderRadius.only(
topLeft: Radius.circular(10),
topRight: Radius.circular(10)),
),
children: [
Text("Bowler", textScaleFactor: 1),
Text(
"OVR",
textScaleFactor: 1,
textAlign: TextAlign.center,
),
]),
TableRow(children: [
Text(score.bowler.name, textScaleFactor: 1),
Text(
score.bowler.overs.toString(),
textScaleFactor: 1,
textAlign: TextAlign.center,
),
]),
],
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment