Commit 0a328c71 authored by Dio Maulana's avatar Dio Maulana

edit home

parent 5e84548b
...@@ -443,6 +443,8 @@ const String listPesanan = '\uf022'; ...@@ -443,6 +443,8 @@ const String listPesanan = '\uf022';
const double listPesananSize = 0.04; const double listPesananSize = 0.04;
const double listPesananSizeViewBill = 0.08; const double listPesananSizeViewBill = 0.08;
const String shoppingCart = '\uf07a';
//** add remove menu */ //** add remove menu */
const double addRemoveQuantityButtonSize = 0.025; const double addRemoveQuantityButtonSize = 0.025;
......
...@@ -181,6 +181,18 @@ TextStyle addButtonMenu({ ...@@ -181,6 +181,18 @@ TextStyle addButtonMenu({
); );
} }
TextStyle addButtonBotoomCart({
font = 16,
Color color = textInButton,
}) {
return TextStyle(
fontFamily: 'Roboto',
fontSize: font,
fontWeight: FontWeight.w600,
color: color,
);
}
Text fontAwesome(BuildContext context, String unicode, double fontSize, Text fontAwesome(BuildContext context, String unicode, double fontSize,
{Color? color, isBold = true}) { {Color? color, isBold = true}) {
// double widthScreens = responsiveWidthScreen(context); // double widthScreens = responsiveWidthScreen(context);
...@@ -196,6 +208,21 @@ Text fontAwesome(BuildContext context, String unicode, double fontSize, ...@@ -196,6 +208,21 @@ Text fontAwesome(BuildContext context, String unicode, double fontSize,
); );
} }
Text fontAwesomeCart(BuildContext context, String unicode, double fontSize,
{Color? color, isBold = true}) {
// double widthScreens = responsiveWidthScreen(context);
// double fontSizeResponsive = MediaQuery.of(context).size.height * fontSize;
return Text(
unicode,
style: TextStyle(
fontFamily: 'FontAwesome',
fontSize: fontSize,
color: color,
fontWeight: (isBold) ? FontWeight.w600 : FontWeight.w400,
),
);
}
Text textCategory(BuildContext context, String text) { Text textCategory(BuildContext context, String text) {
return defaultText(context, text, style: textStyleCategoryMenu(context)); return defaultText(context, text, style: textStyleCategoryMenu(context));
} }
......
...@@ -480,6 +480,34 @@ class _NewHome2State extends State<NewHome2> { ...@@ -480,6 +480,34 @@ class _NewHome2State extends State<NewHome2> {
BorderRadius.circular(28), BorderRadius.circular(28),
color: Colors.white, color: Colors.white,
), ),
child: Container(
padding:
const EdgeInsets.symmetric(
horizontal: 26,
vertical: 8),
child: Row(
crossAxisAlignment:
CrossAxisAlignment.center,
children: [
defaultText(
context,
"Pesan",
style: addButtonBotoomCart(
color: buttonColor,
),
),
const SizedBox(
width: 7,
),
// fontAwesome(
// context,
// shoppingCart,
// 1,
// color: buttonColor,
// )
],
),
),
), ),
const SizedBox( const SizedBox(
width: 23, width: 23,
......
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