Fix: $ to руб
This commit is contained in:
@@ -32,52 +32,59 @@ class BasketItemCard extends StatelessWidget {
|
|||||||
minWidth: 400,
|
minWidth: 400,
|
||||||
maxWidth: 600,
|
maxWidth: 600,
|
||||||
),
|
),
|
||||||
child: Card(
|
child: GestureDetector(
|
||||||
elevation: 4,
|
onTap: () {
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
debugPrint('name: $name');
|
||||||
shape: RoundedRectangleBorder(
|
//TODO: сделать переход по клику
|
||||||
borderRadius: BorderRadius.circular(30),
|
// Navigator.of(context).pushReplacement(CustomPageRoute(builder: (context)=>const DetailPage(name: this.name, description: description, price: price, id: id, image: image)))
|
||||||
),
|
},
|
||||||
child: Padding(
|
child: Card(
|
||||||
padding: const EdgeInsetsDirectional.symmetric(horizontal: 20),
|
elevation: 4,
|
||||||
child: Row(
|
color: Theme.of(context).scaffoldBackgroundColor,
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
shape: RoundedRectangleBorder(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
borderRadius: BorderRadius.circular(30),
|
||||||
children: [
|
),
|
||||||
Row(
|
child: Padding(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
padding: const EdgeInsetsDirectional.symmetric(horizontal: 20),
|
||||||
children: [
|
child: Row(
|
||||||
image,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
const SizedBox(width: 20),
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
Column(
|
children: [
|
||||||
mainAxisSize: MainAxisSize.min,
|
Row(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
Text(
|
children: [
|
||||||
name,
|
image,
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
const SizedBox(width: 20),
|
||||||
),
|
Column(
|
||||||
Text('\$$price'),
|
mainAxisSize: MainAxisSize.min,
|
||||||
],
|
children: [
|
||||||
)
|
Text(
|
||||||
],
|
name,
|
||||||
),
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
Row(
|
),
|
||||||
mainAxisSize: MainAxisSize.min,
|
Text('$price руб.'),
|
||||||
children: [
|
],
|
||||||
IconButton(
|
)
|
||||||
icon: const Icon(Icons.remove),
|
],
|
||||||
onPressed: onTapMinus,
|
),
|
||||||
),
|
Row(
|
||||||
const SizedBox(width: 10),
|
mainAxisSize: MainAxisSize.min,
|
||||||
Text(quantity),
|
children: [
|
||||||
const SizedBox(width: 10),
|
IconButton(
|
||||||
IconButton(
|
icon: const Icon(Icons.remove),
|
||||||
icon: const Icon(Icons.add),
|
onPressed: onTapMinus,
|
||||||
onPressed: onTapPlus,
|
),
|
||||||
),
|
const SizedBox(width: 10),
|
||||||
],
|
Text(quantity),
|
||||||
)
|
const SizedBox(width: 10),
|
||||||
],
|
IconButton(
|
||||||
|
icon: const Icon(Icons.add),
|
||||||
|
onPressed: onTapPlus,
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -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