Fix: shorten text

This commit is contained in:
2024-06-07 14:57:28 +03:00
parent 0170505376
commit 65c8f56e20
7 changed files with 45 additions and 11 deletions

View File

@@ -280,7 +280,7 @@ class _BasketPageState extends State<BasketPage> {
final item = cartItems[index];
return BasketItemCard(
name: item.title,
price: item.price.toString(),
price: item.price.toStringAsFixed(2),
id: item.id,
image: Image(
image: NetworkImage(item.images[0].url),
@@ -304,7 +304,7 @@ class _BasketPageState extends State<BasketPage> {
child: Column(
children: [
Text(
'Итого: $totalPrice руб.',
'Итого: ${totalPrice.toStringAsFixed(2)} руб.',
),
ElevatedButton(
onPressed: () => Navigator.of(context).push(