Commit 8086b2fd authored by Dio Maulana's avatar Dio Maulana

harga coret

parent 769f53cd
...@@ -157,12 +157,14 @@ TextStyle menuNameGridFav( ...@@ -157,12 +157,14 @@ TextStyle menuNameGridFav(
TextStyle menuPriceGridFav({ TextStyle menuPriceGridFav({
font = 10, font = 10,
Color color = textColorBlack, Color color = textColorBlack,
TextDecoration? decoration,
}) { }) {
return TextStyle( return TextStyle(
fontFamily: (fontFamily == '') ? null : fontFamily, fontFamily: (fontFamily == '') ? null : fontFamily,
fontSize: font, fontSize: font,
fontWeight: FontWeight.w400, fontWeight: FontWeight.w400,
color: color, color: color,
decoration: decoration,
); );
} }
...@@ -266,12 +268,14 @@ TextStyle amountMenuStyle({ ...@@ -266,12 +268,14 @@ TextStyle amountMenuStyle({
font = 16, font = 16,
Color color = textColorBlack, Color color = textColorBlack,
FontWeight fontWeight = FontWeight.w300, FontWeight fontWeight = FontWeight.w300,
TextDecoration? decoration,
}) { }) {
return TextStyle( return TextStyle(
fontFamily: (fontFamily == '') ? null : fontFamily, fontFamily: (fontFamily == '') ? null : fontFamily,
fontSize: font, fontSize: font,
fontWeight: fontWeight, fontWeight: fontWeight,
color: color, color: color,
decoration: decoration,
); );
} }
......
...@@ -167,13 +167,31 @@ class FavGridMenu extends StatelessWidget { ...@@ -167,13 +167,31 @@ class FavGridMenu extends StatelessWidget {
height: 20, height: 20,
child: Align( child: Align(
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
child: defaultText( child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
defaultText(
context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}',
maxLines: 3,
overFlow: TextOverflow.ellipsis,
style: menuPriceGridFav(
font: 7,
decoration: TextDecoration.lineThrough,
),
),
const SizedBox(
width: 5,
),
defaultText(
context, context,
'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}', 'Rp ${formatNumber().format(amountParseToInt(categoryFavAfterSelect[i].price))}',
maxLines: 3, maxLines: 3,
overFlow: TextOverflow.ellipsis, overFlow: TextOverflow.ellipsis,
style: menuPriceGridFav(), style: menuPriceGridFav(),
), ),
],
),
), ),
), ),
addRemoveQuantity(context, categoryFavAfterSelect[i]) addRemoveQuantity(context, categoryFavAfterSelect[i])
......
...@@ -91,12 +91,29 @@ class MenuListUtama extends StatelessWidget { ...@@ -91,12 +91,29 @@ class MenuListUtama extends StatelessWidget {
const SizedBox( const SizedBox(
height: 4, height: 4,
), ),
Row(
children: [
defaultText( defaultText(
maxLines: 1, maxLines: 1,
overFlow: TextOverflow.ellipsis, overFlow: TextOverflow.ellipsis,
context, context,
'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}', 'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].price))}',
style: amountMenuStyle(), style: amountMenuStyle(),
),
const SizedBox(
width: 5,
),
defaultText(
maxLines: 1,
overFlow: TextOverflow.ellipsis,
context,
'Rp ${formatNumber().format(amountParseToInt(categoryNonFav[i].originalPrice))}',
style: amountMenuStyle(
font: 12,
decoration:
TextDecoration.lineThrough),
),
],
) )
], ],
), ),
......
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