add length picker

This commit is contained in:
Sai Naw Wun
2020-10-14 01:51:53 +06:30
parent 6ab65065ec
commit 8f5542c4fb
15 changed files with 481 additions and 215 deletions

View File

@@ -13,9 +13,10 @@ class DefaultDeliveryAddress extends StatelessWidget {
final DeliveryAddress deliveryAddress;
final String labelKey;
final OnTap onTap;
final IconData iconData;
const DefaultDeliveryAddress(
{Key key, this.deliveryAddress, this.onTap, this.labelKey})
{Key key, this.deliveryAddress, this.onTap, this.labelKey, this.iconData})
: super(key: key);
@override
@@ -28,7 +29,7 @@ class DefaultDeliveryAddress extends StatelessWidget {
Expanded(
child: DisplayText(
labelTextKey: this.labelKey ?? "delivery_address",
iconData: MaterialCommunityIcons.truck_fast,
iconData: iconData ?? MaterialCommunityIcons.truck_fast,
),
),
onTap == null