update carton info

This commit is contained in:
Thinzar Win
2020-12-11 17:34:56 +06:30
parent 3fdcb851ed
commit b8707b8f87
9 changed files with 352 additions and 350 deletions

View File

@@ -24,7 +24,7 @@ class _CargoTableState extends State<CargoTable> {
scrollDirection: Axis.horizontal,
child: MyDataTable(
headingRowHeight: 40,
columnSpacing: 140,
columnSpacing: 50,
columns: [
MyDataColumn(
label: LocalText(
@@ -33,6 +33,13 @@ class _CargoTableState extends State<CargoTable> {
color: Colors.grey,
),
),
MyDataColumn(
label: LocalText(
context,
"cargo.qty",
color: Colors.grey,
),
),
MyDataColumn(
label: LocalText(
context,
@@ -60,6 +67,19 @@ class _CargoTableState extends State<CargoTable> {
c.name == null ? "" : c.name,
style: textStyle,
)),
MyDataCell(c.qty == null || c.qty == 0
? Center(
child: Text(
"-",
style: textStyle,
),
)
: Center(
child: Text(
c.qty.toString(),
style: textStyle,
),
)),
MyDataCell(
Text(c.weight == null ? "0" : c.weight.toStringAsFixed(2),
style: textStyle),
@@ -80,6 +100,7 @@ class _CargoTableState extends State<CargoTable> {
fontWeight: FontWeight.bold,
),
)),
MyDataCell(Text("")),
MyDataCell(
Padding(
padding: const EdgeInsets.only(right: 48.0),