update carton
This commit is contained in:
@@ -70,19 +70,20 @@ class _PackageInfoState extends State<PackageInfo> {
|
||||
bool canChangeDeliveryAddress =
|
||||
_package?.status == package_received_status ||
|
||||
_package?.status == package_processed_status;
|
||||
var deliveryAddressModel = Provider.of<DeliveryAddressModel>(context);
|
||||
|
||||
final trackingIdBox = DisplayText(
|
||||
text: _package?.trackingID??"",
|
||||
text: _package?.trackingID ?? "",
|
||||
labelTextKey: "package.tracking.id",
|
||||
iconData: MaterialCommunityIcons.barcode_scan,
|
||||
);
|
||||
var fcsIDBox = DisplayText(
|
||||
text: _package?.fcsID??"",
|
||||
text: _package?.fcsID ?? "",
|
||||
labelTextKey: "processing.fcs.id",
|
||||
icon: FcsIDIcon(),
|
||||
);
|
||||
final customerNameBox = DisplayText(
|
||||
text: _package?.userName??"",
|
||||
text: _package?.userName ?? "",
|
||||
labelTextKey: "package.create.name",
|
||||
iconData: Icons.perm_identity,
|
||||
);
|
||||
@@ -120,8 +121,8 @@ class _PackageInfoState extends State<PackageInfo> {
|
||||
context,
|
||||
CupertinoPageRoute(
|
||||
builder: (context) => DeliveryAddressSelection(
|
||||
deliveryAddress: _package.deliveryAddress,
|
||||
)),
|
||||
deliveryAddress: _package.deliveryAddress,
|
||||
deliveryAddresses: deliveryAddressModel.deliveryAddresses)),
|
||||
);
|
||||
if (d == null) return;
|
||||
_changeDeliverayAddress(d);
|
||||
@@ -158,7 +159,9 @@ class _PackageInfoState extends State<PackageInfo> {
|
||||
widget.isSearchResult ? Container() : fcsIDBox,
|
||||
widget.isSearchResult ? Container() : customerNameBox,
|
||||
widget.isSearchResult ? Container() : marketBox,
|
||||
_package==null || _package.photoUrls.length == 0 ? Container() : img,
|
||||
_package == null || _package.photoUrls.length == 0
|
||||
? Container()
|
||||
: img,
|
||||
widget.isSearchResult ? Container() : descBox,
|
||||
remarkBox,
|
||||
_package?.status == package_received_status &&
|
||||
|
||||
Reference in New Issue
Block a user