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

harga coret

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