Initial commit
This commit is contained in:
23
lib/core/theme/app_colors.dart
Normal file
23
lib/core/theme/app_colors.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import '../../food_delivery_client.dart';
|
||||
|
||||
abstract class AppColors {
|
||||
static const Color cTransparent = Colors.transparent;
|
||||
static const Color cRed = Colors.red;
|
||||
|
||||
static const Color cFFFFFF = Color(0xFFFFFFFF);
|
||||
static const Color c000000 = Color(0xFF000000);
|
||||
static const Color cB5B5B5 = Color(0xFFB5B5B5);
|
||||
static const Color c142328 = Color(0xFF142328);
|
||||
static const Color cE6E6E6 = Color(0xFFE6E6E6);
|
||||
static const Color cF6F6F6 = Color(0xFFF6F6F6);
|
||||
static const Color cEEEEEE = Color(0xFFEEEEEE);
|
||||
static const Color c6B6B6B = Color(0xFF6B6B6B);
|
||||
static const Color c34A853 = Color(0xFF34A853);
|
||||
static const Color cD2D7F0 = Color(0xFFD2D7F0);
|
||||
static const Color c9EE2B8 = Color(0xFF9EE2B8);
|
||||
static const Color cE2CC9E = Color(0xFFE2CC9E);
|
||||
static const Color cC99EE2 = Color(0xFFC99EE2);
|
||||
static const Color cE29EC7 = Color(0xFFE29EC7);
|
||||
static const Color c545454 = Color(0xFF545454);
|
||||
|
||||
}
|
||||
27
lib/core/theme/app_icons.dart
Normal file
27
lib/core/theme/app_icons.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
abstract class AppIcons {
|
||||
//baseurl
|
||||
static const String baseUrl = 'assets/icons';
|
||||
|
||||
//icons
|
||||
static const String icHome = "$baseUrl/ic_home.svg";
|
||||
static const String icBrowse = "$baseUrl/ic_browse.svg";
|
||||
static const String icBasket = "$baseUrl/ic_basket.svg";
|
||||
static const String icAccount = "$baseUrl/ic_account.svg";
|
||||
static const String icHomeActive = "$baseUrl/ic_home_active.svg";
|
||||
static const String icBrowseActive = "$baseUrl/ic_browse_active.svg";
|
||||
static const String icBasketActive = "$baseUrl/ic_basket_active.svg";
|
||||
static const String icAccountActive = "$baseUrl/ic_account_active.svg";
|
||||
static const String icBack = "$baseUrl/ic_back.svg";
|
||||
static const String icDislike = "$baseUrl/ic_dislike.svg";
|
||||
static const String icEat = "$baseUrl/ic_eat.svg";
|
||||
static const String icEye = "$baseUrl/ic_eye.svg";
|
||||
static const String icFilter = "$baseUrl/ic_filter.svg";
|
||||
static const String icNext = "$baseUrl/ic_next.svg";
|
||||
static const String icNextGrey = "$baseUrl/ic_next_grey.svg";
|
||||
static const String icOval = "$baseUrl/ic_oval.svg";
|
||||
static const String icUber = "$baseUrl/ic_uber.svg";
|
||||
static const String icLocation = "$baseUrl/ic_location.svg";
|
||||
static const String icArrowBottom = "$baseUrl/ic_arrow_btm.svg";
|
||||
|
||||
///.png icons
|
||||
}
|
||||
27
lib/core/theme/app_images.dart
Normal file
27
lib/core/theme/app_images.dart
Normal file
@@ -0,0 +1,27 @@
|
||||
abstract class AppImages {
|
||||
static const String baseUrl = "assets/images";
|
||||
|
||||
static const String imgConvenience = "$baseUrl/img_convenience.png";
|
||||
static const String imgAlcohol = "$baseUrl/img_alcohol.png";
|
||||
static const String imgPetSupplies = "$baseUrl/img_pet_supplies.png";
|
||||
static const String imgFlowers = "$baseUrl/img_flowers.png";
|
||||
static const String imgGrocery = "$baseUrl/img_grocery.png";
|
||||
static const String imgAmerican = "$baseUrl/img_american.png";
|
||||
static const String imgSpeciality = "$baseUrl/img_speciality.jpg";
|
||||
static const String imgTakeout = "$baseUrl/img_takeout.png";
|
||||
static const String imgAsian = "$baseUrl/img_asian.png";
|
||||
static const String imgIceCream = "$baseUrl/img_ice_cream.png";
|
||||
static const String imgHalal= "$baseUrl/img_halal.png";
|
||||
static const String imgRetails= "$baseUrl/img_retails.png";
|
||||
static const String imgCarribean= "$baseUrl/img_carribean.png";
|
||||
static const String imgIndian= "$baseUrl/img_indian.png";
|
||||
static const String imgFrench = "$baseUrl/img_french.png";
|
||||
static const String imgFastFoods = "$baseUrl/img_fast_food.png";
|
||||
static const String imgBurger = "$baseUrl/img_burger.png";
|
||||
static const String imgRide = "$baseUrl/img_ride.png";
|
||||
static const String imgChinese= "$baseUrl/img_chinese.png";
|
||||
static const String imgDesert = "$baseUrl/img_desert.png";
|
||||
static const String imgPickUp= "$baseUrl/img_pick_up.png";
|
||||
|
||||
|
||||
}
|
||||
87
lib/core/theme/app_textstyles.dart
Normal file
87
lib/core/theme/app_textstyles.dart
Normal file
@@ -0,0 +1,87 @@
|
||||
import '../../food_delivery_client.dart';
|
||||
|
||||
abstract class AppTextStyles {
|
||||
static const Color _defaultColor = AppColors.c000000;
|
||||
static const String _fontRegular = AppLocaleKeys.fontRegular;
|
||||
static const String _fontMedium = AppLocaleKeys.fontMedium;
|
||||
static const String _fontBold = AppLocaleKeys.fontBold;
|
||||
static const String _fontLight = AppLocaleKeys.fontLight;
|
||||
|
||||
static const TextStyle size10Regular = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_10,
|
||||
fontFamily: _fontRegular,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const TextStyle size12Regular = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_12,
|
||||
fontFamily: _fontRegular,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const TextStyle size14Regular = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_14,
|
||||
fontFamily: _fontRegular,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const TextStyle size20Regular = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_20,
|
||||
fontFamily: _fontRegular,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
|
||||
static const TextStyle size14Medium = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_14,
|
||||
fontFamily: _fontMedium,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const TextStyle size15Medium = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_15,
|
||||
fontFamily: _fontMedium,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const TextStyle size16Medium = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_16,
|
||||
fontFamily: _fontMedium,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const TextStyle size18Medium = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_18,
|
||||
fontFamily: _fontMedium,
|
||||
fontWeight: FontWeight.w500,
|
||||
);
|
||||
|
||||
static const TextStyle size17Bold = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_17,
|
||||
fontFamily: _fontBold,
|
||||
fontWeight: FontWeight.w700,
|
||||
);
|
||||
|
||||
static const TextStyle size24Bold = TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_24,
|
||||
fontFamily: _fontBold,
|
||||
fontWeight: FontWeight.w700,
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
TextStyle(
|
||||
color: _defaultColor,
|
||||
fontSize: SizesCons.size_10,
|
||||
fontFamily: _fontRegular,
|
||||
);
|
||||
*/
|
||||
64
lib/core/theme/app_theme.dart
Normal file
64
lib/core/theme/app_theme.dart
Normal file
@@ -0,0 +1,64 @@
|
||||
import '../../food_delivery_client.dart';
|
||||
|
||||
abstract class AppTheme {
|
||||
static ThemeData get lightTheme => ThemeData.light().copyWith(
|
||||
brightness: Brightness.light,
|
||||
appBarTheme: AppBarTheme(
|
||||
elevation: 0,
|
||||
backgroundColor: AppColors.cFFFFFF,
|
||||
foregroundColor: AppColors.cFFFFFF,
|
||||
surfaceTintColor: AppColors.cTransparent,
|
||||
),
|
||||
scaffoldBackgroundColor: AppColors.cFFFFFF,
|
||||
bottomNavigationBarTheme: BottomNavigationBarThemeData(
|
||||
elevation:0,
|
||||
showSelectedLabels: true,
|
||||
showUnselectedLabels: true,
|
||||
backgroundColor: AppColors.cFFFFFF,
|
||||
type: BottomNavigationBarType.fixed,
|
||||
unselectedItemColor: AppColors.cB5B5B5,
|
||||
selectedItemColor:AppColors.c000000,
|
||||
selectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: Colors.red,
|
||||
),
|
||||
unselectedLabelStyle: AppTextStyles.size10Regular.copyWith(
|
||||
color: AppColors.c000000,
|
||||
),
|
||||
// unselectedLabelStyle: AppTextStyles.size14Medium.copyWith(
|
||||
// color: AppColors.c888888,
|
||||
// fontFamily: "fontNorms",
|
||||
// ),
|
||||
),
|
||||
// inputDecorationTheme: InputDecorationTheme(
|
||||
// filled: true,
|
||||
// fillColor: AppColors.cMainBg,
|
||||
// hintStyle: AppTextStyles.size15Medium.copyWith(color: AppColors.c888888),
|
||||
// contentPadding: EdgeInsets.symmetric(horizontal: 16.w, vertical: 10.h),
|
||||
// errorStyle: AppTextStyles.size12Medium.copyWith(color: AppColors.cRed),
|
||||
// errorBorder: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cRed, width: 1.5.r),
|
||||
// ),
|
||||
// focusedBorder: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cFF9914, width: 1.5.r),
|
||||
// ),
|
||||
// enabledBorder: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cEDEDED, width: 1.5.r),
|
||||
// ),
|
||||
// focusedErrorBorder: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cRed, width: 1.5.r),
|
||||
// ),
|
||||
// disabledBorder: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cEDEDED, width: 1.5.r),
|
||||
// ),
|
||||
// border: OutlineInputBorder(
|
||||
// borderRadius: BorderRadius.circular(12.sp),
|
||||
// borderSide: BorderSide(color: AppColors.cEDEDED, width: 1.5.r),
|
||||
// ),
|
||||
// ),
|
||||
);
|
||||
}
|
||||
5
lib/core/theme/theme.dart
Normal file
5
lib/core/theme/theme.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
export 'app_icons.dart';
|
||||
export 'app_images.dart';
|
||||
export 'app_textstyles.dart';
|
||||
export 'app_theme.dart';
|
||||
export 'app_colors.dart';
|
||||
Reference in New Issue
Block a user