This commit is contained in:
phyothandar
2021-09-13 10:14:35 +06:30
parent 16c0081aea
commit 86f3342480
2 changed files with 3 additions and 2 deletions

View File

@@ -61,9 +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 == null) return;
if (updated) {
_getDeliverAddresses();
}