Commit ac095706 authored by Dio Maulana's avatar Dio Maulana

harga coret

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