Table(
columnWidths: <int, TableColumnWidth>{
0: FixedColumnWidth(Screen.width(300)),
1: FixedColumnWidth(Screen.width(300))
},
defaultVerticalAlignment: TableCellVerticalAlignment.middle,
border: TableBorder.all(
color: Colors.grey,
Screen.width(2)
),
children: [
TableRow(
decoration: BoxDecoration(
color: ColorGather.colorBg()
),
children: [
Container(
alignment: Alignment.center,
height: Screen.width(80),
child: Text('荣誉等级', style: TextStyle(fontSize: Screen.width(28)),),
),
Text('荣誉等级', style: TextStyle(fontSize: Screen.width(28)), textAlign: TextAlign.center,)
]
),
TableRow(
children: [
Container(
alignment: Alignment.center,
height: Screen.width(80),
child: Text('黄铜', style: TextStyle(fontSize: Screen.width(28)),),
),
Text('荣誉等级', style: TextStyle(fontSize: Screen.width(28)), textAlign: TextAlign.center,)
]
),
],
)