Commit ac095706 authored by Dio Maulana's avatar Dio Maulana

harga coret

parent 9644f9be
...@@ -170,7 +170,10 @@ class FavGridMenu extends StatelessWidget { ...@@ -170,7 +170,10 @@ class FavGridMenu extends StatelessWidget {
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
defaultText( (amountParseToInt(categoryFavAfterSelect[i].price) <
amountParseToInt(
categoryFavAfterSelect[i].originalPrice))
? defaultText(
context, context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}', 'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}',
maxLines: 3, maxLines: 3,
...@@ -179,13 +182,18 @@ class FavGridMenu extends StatelessWidget { ...@@ -179,13 +182,18 @@ class FavGridMenu extends StatelessWidget {
font: 7, font: 7,
decoration: TextDecoration.lineThrough, decoration: TextDecoration.lineThrough,
), ),
), )
const SizedBox( : const SizedBox(),
(amountParseToInt(categoryFavAfterSelect[i].price) <
amountParseToInt(
categoryFavAfterSelect[i].originalPrice))
? const SizedBox(
width: 5, width: 5,
), )
: const SizedBox(),
defaultText( defaultText(
context, context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}', 'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].originalPrice))}',
maxLines: 3, maxLines: 3,
overFlow: TextOverflow.ellipsis, overFlow: TextOverflow.ellipsis,
style: menuPriceGridFav(), style: menuPriceGridFav(),
......
...@@ -100,10 +100,17 @@ class MenuListUtama extends StatelessWidget { ...@@ -100,10 +100,17 @@ class MenuListUtama extends StatelessWidget {
'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}', 'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}',
style: amountMenuStyle(), style: amountMenuStyle(),
), ),
const SizedBox( (amountParseToInt(categoryNonFav[i].price) <
amountParseToInt(categoryNonFav[i]
.originalPrice))
? const SizedBox(
width: 5, width: 5,
), )
defaultText( : const SizedBox(),
(amountParseToInt(categoryNonFav[i].price) <
amountParseToInt(categoryNonFav[i]
.originalPrice))
? defaultText(
maxLines: 1, maxLines: 1,
overFlow: TextOverflow.ellipsis, overFlow: TextOverflow.ellipsis,
context, context,
...@@ -112,7 +119,8 @@ class MenuListUtama extends StatelessWidget { ...@@ -112,7 +119,8 @@ class MenuListUtama extends StatelessWidget {
font: 12, font: 12,
decoration: decoration:
TextDecoration.lineThrough), 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