Add product image URL and max qty

This commit is contained in:
Hillel Coren 2023-02-09 10:50:29 +02:00
parent b659385a0a
commit f40bd61a94
1 changed files with 10 additions and 0 deletions

View File

@ -94,6 +94,16 @@ class _ProductOverviewState extends State<ProductOverview> {
}
}
if (product.maxQuantity > 0) {
fields[localization.maxQuantity] = formatNumber(
product.maxQuantity.toDouble(), context,
formatNumberType: FormatNumberType.int);
}
if (product.imageUrl.isNotEmpty) {
fields[localization.imageUrl] = product.imageUrl;
}
return ScrollableListView(
children: <Widget>[
EntityHeader(