From 87163441ad6f4bdeea890fc93d04516fef1def29 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 11 Jan 2024 14:28:31 +0700 Subject: [PATCH] [Homepage] 1. add Constant --- lib/app/constant.dart | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/lib/app/constant.dart b/lib/app/constant.dart index a5f128e..2d8564c 100644 --- a/lib/app/constant.dart +++ b/lib/app/constant.dart @@ -9,6 +9,7 @@ class Constant { // color theme static Color textBlack = const Color(0xff212B36); + static Color textDarkGrey = const Color(0xff637381); static Color textLightGrey = const Color(0xff919EAB); // size convertion @@ -41,10 +42,43 @@ class Constant { ); } + static TextStyle titleH2_600_14({required BuildContext context}) { + return TextStyle( + fontSize: Constant.getActualYPhone(context: context, y: 14), + fontWeight: FontWeight.w600, + fontFamily: 'Public Sans' + ); + } + + static TextStyle titleH2_700({required BuildContext context}) { + return TextStyle( + fontFamily: 'Quicksand', + fontSize: Constant.getActualYPhone(context: context, y: 14), + fontWeight: FontWeight.w700, + ); + } + + static TextStyle logintitle_700({required BuildContext context}) { return TextStyle( fontSize: Constant.getActualYPhone(context: context, y: 15), fontWeight: FontWeight.w700, ); } + + static TextStyle time_700({required BuildContext context}) { + return TextStyle( + fontSize: Constant.getActualYPhone(context: context, y: 28), + fontWeight: FontWeight.w700, + fontFamily: 'Quicksand', + ); + } + + static TextStyle date_600({required BuildContext context}) { + return TextStyle( + fontSize: Constant.getActualYPhone(context: context, y: 16), + fontWeight: FontWeight.w600, + fontFamily: 'Quicksand', + ); + } }