fix profile

This commit is contained in:
Sai Naw Wun
2020-10-11 02:17:23 +06:30
parent b0ce53f856
commit 32e6be2abd
42 changed files with 938 additions and 626 deletions

View File

@@ -5,8 +5,8 @@ class DeliveryAddress {
String addressLine2;
String city;
String state;
String country;
String phoneNumber;
bool isDefault;
DeliveryAddress(
{this.id,
this.fullName,
@@ -14,8 +14,8 @@ class DeliveryAddress {
this.addressLine2,
this.city,
this.state,
this.country,
this.phoneNumber});
this.phoneNumber,
this.isDefault = false});
factory DeliveryAddress.fromMap(Map<String, dynamic> map, String docID) {
return DeliveryAddress(
@@ -25,8 +25,8 @@ class DeliveryAddress {
addressLine2: map['address_line2'],
city: map['city'],
state: map['state'],
country: map['country'],
phoneNumber: map['phone_number'],
isDefault: map['is_defalut'] ?? false,
);
}
@@ -39,7 +39,6 @@ class DeliveryAddress {
'city': city,
'state': state,
'phone_number': phoneNumber,
'country': country,
};
}
}