update package detal list and update cargo type input in carton section

This commit is contained in:
tzw
2025-03-25 17:38:51 +06:30
parent 3d4bc43de4
commit 2bd75f0333
14 changed files with 597 additions and 812 deletions

View File

@@ -74,32 +74,38 @@ class PackageSelectionResult extends StatelessWidget {
child: Row(
children: <Widget>[
Expanded(
child: new Padding(
child: Padding(
padding: const EdgeInsets.symmetric(
vertical: 8.0),
child: new Column(
child: Column(
crossAxisAlignment:
CrossAxisAlignment.start,
children: <Widget>[
new Text(package.trackingID ?? "",
style: new TextStyle(
Text(package.trackingID ?? "",
style: TextStyle(
fontSize: 15.0,
color: Colors.black)),
new Text(
package.cartonIds.isEmpty
? "-"
: "${numberFormatter.format(package.cartonIds.length)} Boxes",
style: new TextStyle(
Text(
package.market != null &&
package.market != ""
? "${package.market}"
: "-",
style: TextStyle(
fontSize: 15.0,
color: Colors.grey),
),
// Text(
// package.cartonIds.isEmpty
// ? "-"
// : "${numberFormatter.format(package.cartonIds.length)} Boxes",
// style: TextStyle(
// fontSize: 15.0,
// color: Colors.grey),
// ),
],
),
),
),
package.isChecked
? Icon(Icons.check, color: primaryColor)
: const SizedBox()
],
),
),