update shipment and carton
This commit is contained in:
@@ -61,10 +61,10 @@ class _DeliveryAddressSelectionState extends State<DeliveryAddressSelection> {
|
||||
),
|
||||
floatingActionButton: FloatingActionButton.extended(
|
||||
onPressed: () async {
|
||||
bool updated = await Navigator.of(context).push(CupertinoPageRoute(
|
||||
bool? updated = await Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) =>
|
||||
DeliveryAddressEditor(user: widget.user)));
|
||||
if (updated) {
|
||||
if (updated ?? false) {
|
||||
_getDeliverAddresses();
|
||||
}
|
||||
},
|
||||
@@ -114,10 +114,10 @@ class _DeliveryAddressSelectionState extends State<DeliveryAddressSelection> {
|
||||
}
|
||||
|
||||
_edit(BuildContext context, DeliveryAddress deliveryAddress) async {
|
||||
bool updated = await Navigator.of(context).push(CupertinoPageRoute(
|
||||
bool? updated = await Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => DeliveryAddressEditor(
|
||||
user: widget.user, deliveryAddress: deliveryAddress)));
|
||||
if (updated) {
|
||||
if (updated ?? false) {
|
||||
_getDeliverAddresses();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user