feat:mai page done
This commit is contained in:
@@ -54,5 +54,7 @@ abstract class AppColors {
|
||||
static const Color cE2E4EA = Color(0xFFE2E4EA);
|
||||
static const Color cA7AEC1 = Color(0xFFA7AEC1);
|
||||
static const Color c151B33 = Color(0xFF151B33);
|
||||
static const Color cE5E7EB = Color(0xFFE5E7EB);
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -7,17 +7,34 @@ abstract class AppIcons {
|
||||
static const String icLogin = "$baseUrl/ic_login.svg";
|
||||
static const String icVisibility = "$baseUrl/ic_visibility.svg";
|
||||
static const String icVisibilityOff = "$baseUrl/ic_visibility_off.svg";
|
||||
|
||||
static const String icHome = "$baseUrl/ic_home.svg";
|
||||
static const String icDiscover = "$baseUrl/ic_discover.svg";
|
||||
static const String icCart = "$baseUrl/ic_cart.svg";
|
||||
static const String icCart1 = "$baseUrl/ic_cart1.svg";
|
||||
static const String icTransactions = "$baseUrl/ic_transactions.svg";
|
||||
static const String icProfile = "$baseUrl/ic_profile.svg";
|
||||
}
|
||||
|
||||
abstract class AppLightSvgs {
|
||||
static const String baseUrl = "assets/icons/light";
|
||||
static const String icSplash = "$baseUrl/ic_splash.svg";
|
||||
static const String icArrowLeft = "$baseUrl/ic_arrow_left.svg";
|
||||
static const String icHome = "$baseUrl/ic_home.svg";
|
||||
static const String icDiscover = "$baseUrl/ic_discover.svg";
|
||||
static const String icCart = "$baseUrl/ic_cart.svg";
|
||||
static const String icCart1 = "$baseUrl/ic_cart1.svg";
|
||||
static const String icTransactions = "$baseUrl/ic_transactions.svg";
|
||||
static const String icProfile = "$baseUrl/ic_profile.svg";
|
||||
}
|
||||
|
||||
abstract class AppDarkSvgs {
|
||||
static const String baseUrl = "assets/icons/dark";
|
||||
static const String icSplash = "$baseUrl/ic_splash.svg";
|
||||
static const String icArrowLeft = "$baseUrl/ic_arrow_left.svg";
|
||||
static const String icHome = "$baseUrl/ic_home.svg";
|
||||
static const String icDiscover = "$baseUrl/ic_discover.svg";
|
||||
static const String icCart = "$baseUrl/ic_cart.svg";
|
||||
static const String icCart1 = "$baseUrl/ic_cart1.svg";
|
||||
static const String icTransactions = "$baseUrl/ic_transactions.svg";
|
||||
static const String icProfile = "$baseUrl/ic_profile.svg";
|
||||
}
|
||||
|
||||
@@ -46,17 +46,17 @@ abstract class AppTheme {
|
||||
),
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
elevation: 0,
|
||||
showSelectedLabels: true,
|
||||
showUnselectedLabels: true,
|
||||
showSelectedLabels: false,
|
||||
showUnselectedLabels: false,
|
||||
backgroundColor: AppColors.cFFFFFF,
|
||||
type: BottomNavigationBarType.fixed,
|
||||
unselectedItemColor: AppColors.cB5B5B5,
|
||||
selectedItemColor: AppColors.c000000,
|
||||
selectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: Colors.red,
|
||||
unselectedItemColor: AppColors.cA9A9A9,
|
||||
selectedItemColor: AppColors.cFF6F00,
|
||||
selectedLabelStyle: AppTextStyles.size12Medium.copyWith(
|
||||
color: AppColors.cFF6F00,
|
||||
),
|
||||
unselectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: AppColors.c000000,
|
||||
color: AppColors.cA9A9A9,
|
||||
),
|
||||
// unselectedLabelStyle: AppTextStyles.size14Medium.copyWith(
|
||||
// color: AppColors.c888888,
|
||||
@@ -138,17 +138,17 @@ abstract class AppTheme {
|
||||
),
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
elevation: 0,
|
||||
showSelectedLabels: true,
|
||||
showUnselectedLabels: true,
|
||||
backgroundColor: AppColors.cFFFFFF,
|
||||
showSelectedLabels: false,
|
||||
showUnselectedLabels: false,
|
||||
backgroundColor: AppColors.c131720,
|
||||
type: BottomNavigationBarType.fixed,
|
||||
unselectedItemColor: AppColors.cB5B5B5,
|
||||
selectedItemColor: AppColors.c000000,
|
||||
selectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: Colors.red,
|
||||
unselectedItemColor: AppColors.c626262,
|
||||
selectedItemColor: AppColors.cFF6F00,
|
||||
selectedLabelStyle: AppTextStyles.size12Medium.copyWith(
|
||||
color: AppColors.cFF6F00,
|
||||
),
|
||||
unselectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: AppColors.c000000,
|
||||
unselectedLabelStyle: AppTextStyles.size12Medium.copyWith(
|
||||
color: AppColors.c626262,
|
||||
),
|
||||
// unselectedLabelStyle: AppTextStyles.size14Medium.copyWith(
|
||||
// color: AppColors.c888888,
|
||||
|
||||
@@ -8,6 +8,10 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
final Color buttonInactiveColor;
|
||||
final Color borderColor;
|
||||
final Color inActiveColor;
|
||||
final Color inActiveColor1;
|
||||
final Color inActiveColor2;
|
||||
|
||||
|
||||
|
||||
AppThemeColors({
|
||||
required this.onBoardingColor,
|
||||
@@ -16,6 +20,9 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
required this.buttonInactiveColor,
|
||||
required this.borderColor,
|
||||
required this.inActiveColor,
|
||||
required this.inActiveColor1,
|
||||
required this.inActiveColor2,
|
||||
|
||||
});
|
||||
|
||||
static AppThemeColors light = AppThemeColors(
|
||||
@@ -25,6 +32,8 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
iconColor: AppColors.cFFFFFF,
|
||||
borderColor: AppColors.cE2E4EA,
|
||||
inActiveColor: AppColors.cE2E4EA,
|
||||
inActiveColor1: AppColors.cA9A9A9,
|
||||
inActiveColor2: AppColors.cE5E7EB
|
||||
);
|
||||
|
||||
static AppThemeColors dark = AppThemeColors(
|
||||
@@ -34,6 +43,8 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
iconColor: AppColors.c131720,
|
||||
borderColor: AppColors.c292F3D,
|
||||
inActiveColor: AppColors.c292F3D,
|
||||
inActiveColor1: AppColors.c626262,
|
||||
inActiveColor2: AppColors.c292F3D
|
||||
);
|
||||
|
||||
@override
|
||||
@@ -44,6 +55,9 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
Color? buttonInactiveColor,
|
||||
Color? borderColor,
|
||||
Color? inActiveColor,
|
||||
Color? inActiveColor1,
|
||||
Color? inActiveColor2,
|
||||
|
||||
}) {
|
||||
return AppThemeColors(
|
||||
onBoardingColor: onBoardingColor ?? this.onBoardingColor,
|
||||
@@ -52,6 +66,8 @@ class AppThemeColors extends ThemeExtension<AppThemeColors> {
|
||||
buttonInactiveColor: buttonInactiveColor ?? this.buttonInactiveColor,
|
||||
borderColor: borderColor ?? this.borderColor,
|
||||
inActiveColor: inActiveColor ?? this.inActiveColor,
|
||||
inActiveColor1: inActiveColor1 ?? this.inActiveColor1,
|
||||
inActiveColor2: inActiveColor2??this.inActiveColor2
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,27 +4,66 @@ import 'package:food_delivery_client/core/core.dart';
|
||||
class AppThemeIcons extends ThemeExtension<AppThemeIcons> {
|
||||
final String icSplash;
|
||||
final String icArrowLeft;
|
||||
final String icHome;
|
||||
final String icDiscover;
|
||||
final String icCart;
|
||||
final String icCart1;
|
||||
final String icTransactions;
|
||||
final String icProfile;
|
||||
|
||||
AppThemeIcons({required this.icSplash, required this.icArrowLeft});
|
||||
AppThemeIcons({
|
||||
required this.icSplash,
|
||||
required this.icArrowLeft,
|
||||
required this.icHome,
|
||||
required this.icDiscover,
|
||||
required this.icCart,
|
||||
required this.icTransactions,
|
||||
required this.icProfile,
|
||||
required this.icCart1,
|
||||
});
|
||||
|
||||
static AppThemeIcons light = AppThemeIcons(
|
||||
icSplash: AppLightSvgs.icSplash,
|
||||
icArrowLeft: AppLightSvgs.icArrowLeft,
|
||||
icHome: AppLightSvgs.icHome,
|
||||
icDiscover: AppLightSvgs.icDiscover,
|
||||
icCart: AppLightSvgs.icCart,
|
||||
icTransactions: AppLightSvgs.icTransactions,
|
||||
icProfile: AppLightSvgs.icProfile,
|
||||
icCart1: AppLightSvgs.icCart1,
|
||||
);
|
||||
|
||||
static AppThemeIcons dark = AppThemeIcons(
|
||||
icSplash: AppDarkSvgs.icSplash,
|
||||
icArrowLeft: AppDarkSvgs.icArrowLeft,
|
||||
icHome: AppDarkSvgs.icHome,
|
||||
icDiscover: AppDarkSvgs.icDiscover,
|
||||
icCart: AppDarkSvgs.icCart,
|
||||
icTransactions: AppDarkSvgs.icTransactions,
|
||||
icProfile: AppDarkSvgs.icProfile,
|
||||
icCart1: AppDarkSvgs.icCart1,
|
||||
);
|
||||
|
||||
@override
|
||||
ThemeExtension<AppThemeIcons> copyWith({
|
||||
String? icSplash,
|
||||
String? icArrowLeft,
|
||||
String? icHome,
|
||||
String? icDiscover,
|
||||
String? icCart,
|
||||
String? icCart1,
|
||||
String? icTransactions,
|
||||
String? icProfile,
|
||||
}) {
|
||||
return AppThemeIcons(
|
||||
icSplash: icSplash ?? this.icSplash,
|
||||
icArrowLeft: icArrowLeft ?? this.icArrowLeft,
|
||||
icHome: icHome ?? this.icHome,
|
||||
icDiscover: icDiscover ?? this.icDiscover,
|
||||
icCart: icCart ?? this.icCart,
|
||||
icTransactions: icTransactions ?? this.icTransactions,
|
||||
icProfile: icProfile ?? this.icProfile,
|
||||
icCart1: icCart ?? this.icCart1,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user