update order detail
This commit is contained in:
@@ -156,7 +156,7 @@ class _ProductDetailPageState extends ConsumerState<ProductDetailPage> {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
'Đã thêm $_quantity ${product.unit} ${product.name} vào giỏ hàng!',
|
||||
'Đã thêm $_quantity m² ${product.name} vào giỏ hàng!',
|
||||
),
|
||||
duration: const Duration(seconds: 2),
|
||||
action: SnackBarAction(
|
||||
@@ -246,7 +246,7 @@ class _ProductDetailPageState extends ConsumerState<ProductDetailPage> {
|
||||
right: 0,
|
||||
child: StickyActionBar(
|
||||
quantity: _quantity,
|
||||
unit: product.unit ?? 'm²',
|
||||
unit: 'm²',
|
||||
conversionOfSm: product.conversionOfSm,
|
||||
uomFromIntroAttributes: product.getIntroAttribute('UOM'),
|
||||
onIncrease: _increaseQuantity,
|
||||
|
||||
@@ -220,7 +220,7 @@ class ProductCard extends ConsumerWidget {
|
||||
|
||||
// Price
|
||||
Text(
|
||||
'${_formatPrice(product.effectivePrice)}/${product.unit}',
|
||||
'${_formatPrice(product.effectivePrice)}/m²',
|
||||
style: const TextStyle(
|
||||
fontSize: 16.0,
|
||||
fontWeight: FontWeight.bold,
|
||||
|
||||
@@ -61,7 +61,7 @@ class ProductInfoSection extends StatelessWidget {
|
||||
children: [
|
||||
// Current Price
|
||||
Text(
|
||||
'${_formatPrice(product.basePrice)}/${product.unit ?? 'm²'}',
|
||||
'${_formatPrice(product.basePrice)}/m²',
|
||||
style: const TextStyle(
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.w700,
|
||||
|
||||
Reference in New Issue
Block a user