Commit ac095706 authored by Dio Maulana's avatar Dio Maulana

harga coret

parent 9644f9be
......@@ -170,7 +170,10 @@ class FavGridMenu extends StatelessWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
defaultText(
(amountParseToInt(categoryFavAfterSelect[i].price) <
amountParseToInt(
categoryFavAfterSelect[i].originalPrice))
? defaultText(
context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}',
maxLines: 3,
......@@ -179,13 +182,18 @@ class FavGridMenu extends StatelessWidget {
font: 7,
decoration: TextDecoration.lineThrough,
),
),
const SizedBox(
)
: const SizedBox(),
(amountParseToInt(categoryFavAfterSelect[i].price) <
amountParseToInt(
categoryFavAfterSelect[i].originalPrice))
? const SizedBox(
width: 5,
),
)
: const SizedBox(),
defaultText(
context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}',
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].originalPrice))}',
maxLines: 3,
overFlow: TextOverflow.ellipsis,
style: menuPriceGridFav(),
......
......@@ -100,10 +100,17 @@ class MenuListUtama extends StatelessWidget {
'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}',
style: amountMenuStyle(),
),
const SizedBox(
(amountParseToInt(categoryNonFav[i].price) <
amountParseToInt(categoryNonFav[i]
.originalPrice))
? const SizedBox(
width: 5,
),
defaultText(
)
: const SizedBox(),
(amountParseToInt(categoryNonFav[i].price) <
amountParseToInt(categoryNonFav[i]
.originalPrice))
? defaultText(
maxLines: 1,
overFlow: TextOverflow.ellipsis,
context,
......@@ -112,7 +119,8 @@ class MenuListUtama extends StatelessWidget {
font: 12,
decoration:
TextDecoration.lineThrough),
),
)
: const SizedBox(),
],
)
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment