Fix: $ to руб
This commit is contained in:
@@ -32,6 +32,12 @@ class BasketItemCard extends StatelessWidget {
|
|||||||
minWidth: 400,
|
minWidth: 400,
|
||||||
maxWidth: 600,
|
maxWidth: 600,
|
||||||
),
|
),
|
||||||
|
child: GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
debugPrint('name: $name');
|
||||||
|
//TODO: сделать переход по клику
|
||||||
|
// Navigator.of(context).pushReplacement(CustomPageRoute(builder: (context)=>const DetailPage(name: this.name, description: description, price: price, id: id, image: image)))
|
||||||
|
},
|
||||||
child: Card(
|
child: Card(
|
||||||
elevation: 4,
|
elevation: 4,
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
@@ -56,7 +62,7 @@ class BasketItemCard extends StatelessWidget {
|
|||||||
name,
|
name,
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
Text('\$$price'),
|
Text('$price руб.'),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
@@ -82,6 +88,7 @@ class BasketItemCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class HistoryItemCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
MarkdownBody(
|
MarkdownBody(
|
||||||
data: 'Статус: **${orderStatusMap[status]}**'),
|
data: 'Статус: **${orderStatusMap[status]}**'),
|
||||||
MarkdownBody(data: 'Сумма: **\$$cost**'),
|
MarkdownBody(data: 'Сумма: **$cost руб.**'),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class ProductCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
Text(
|
Text(
|
||||||
'\$$price',
|
'$price руб.',
|
||||||
style: Theme.of(context).textTheme.titleSmall,
|
style: Theme.of(context).textTheme.titleSmall,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class OrderConfirmItemCard extends StatelessWidget {
|
|||||||
name,
|
name,
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
Text('\$$price x $count = \$${price * count}'),
|
Text('$price руб. x $count = ${price * count} руб.'),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user