step 8 : slicing home screen fix

This commit is contained in:
sindhu
2025-02-15 18:32:12 +07:00
parent 823f1aa525
commit 32abcb60dc
8 changed files with 251 additions and 15 deletions

View File

@@ -18,12 +18,10 @@ class Constant {
static Color bgRed = const Color(0xffFF4842).withOpacity(0.08);
static Color bgGrey = const Color(0xffF9F9F9);
static Color bgBlue = Colors.blue;
static Color bgIcon = const Color(0xffA8CF45);
static Color textCardGrey = const Color.fromRGBO(0, 0, 0, 0.60);
static Color textTrueBlack = const Color(0xff000000);
static Color textBlack = const Color(0xff212B36);
static Color textLightGrey = const Color(0xff919EAB);
static Color textOrange = const Color(0xffF15A29);
static Color textDarkGrey = const Color(0xff637381);
static Color textWhite = Color(0xffFDFDFD);
static Color textRed = Color(0xffFF4842);
// background upload file
@@ -45,6 +43,20 @@ class Constant {
}
// typography
static TextStyle titleRiwayat({required BuildContext context}) {
return TextStyle(
fontSize: Constant.getActualYPhone(context: context, y: 20),
fontWeight: FontWeight.w500,
);
}
static TextStyle cardText({required BuildContext context}) {
return TextStyle(
fontSize: Constant.getActualYPhone(context: context, y: 14),
fontWeight: FontWeight.w400,
);
}
static TextStyle title_700({required BuildContext context}) {
return TextStyle(
fontSize: Constant.getActualYPhone(context: context, y: 36),
@@ -66,6 +78,13 @@ class Constant {
);
}
static TextStyle titleInputan600({required BuildContext context}) {
return TextStyle(
fontSize: Constant.getActualYPhone(context: context, y: 16),
fontWeight: FontWeight.w600,
);
}
static TextStyle titleButton500({required BuildContext context}) {
return TextStyle(
fontSize: Constant.getActualYPhone(context: context, y: 15),