update carton info
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user