forked from eatvio/eatvio_app
feat(feed): add recipes screen
This commit is contained in:
@@ -15,6 +15,7 @@ class AppDecoration {
|
||||
width: 1.h,
|
||||
),
|
||||
);
|
||||
|
||||
static BoxDecoration get outlinePrimary => BoxDecoration(
|
||||
color: theme.colorScheme.onPrimary,
|
||||
border: Border.all(
|
||||
@@ -22,27 +23,35 @@ class AppDecoration {
|
||||
width: 1.h,
|
||||
),
|
||||
);
|
||||
|
||||
static BoxDecoration get fillDeepOrange => BoxDecoration(
|
||||
color: appTheme.deepOrange900.withOpacity(0.8),
|
||||
);
|
||||
|
||||
static BoxDecoration get fillGray => BoxDecoration(
|
||||
color: appTheme.gray50,
|
||||
);
|
||||
|
||||
static BoxDecoration get fillGray100 => BoxDecoration(
|
||||
color: appTheme.gray100,
|
||||
);
|
||||
|
||||
static BoxDecoration get fillGray60002 => BoxDecoration(
|
||||
color: appTheme.gray60002,
|
||||
);
|
||||
|
||||
static BoxDecoration get fillGreenA => BoxDecoration(
|
||||
color: appTheme.greenA700.withOpacity(0.8),
|
||||
);
|
||||
|
||||
static BoxDecoration get fillPrimary => BoxDecoration(
|
||||
color: theme.colorScheme.primary,
|
||||
);
|
||||
|
||||
static BoxDecoration get fillWhiteA => BoxDecoration(
|
||||
color: appTheme.whiteA700,
|
||||
);
|
||||
|
||||
static BoxDecoration get outlineBlueGray => BoxDecoration(
|
||||
border: Border.all(
|
||||
color: appTheme.blueGray800,
|
||||
@@ -78,6 +87,7 @@ class BorderRadiusStyle {
|
||||
),
|
||||
],
|
||||
);
|
||||
|
||||
static BoxDecoration get outlineBlueGray => BoxDecoration(
|
||||
border: Border.all(
|
||||
color: appTheme.blueGray800,
|
||||
@@ -85,13 +95,16 @@ class BorderRadiusStyle {
|
||||
strokeAlign: strokeAlignOutside,
|
||||
),
|
||||
);
|
||||
|
||||
// Circle borders
|
||||
static BorderRadius get circleBorder17 => BorderRadius.circular(
|
||||
17.h,
|
||||
);
|
||||
|
||||
static BorderRadius get circleBorder20 => BorderRadius.circular(
|
||||
20.h,
|
||||
);
|
||||
|
||||
static BorderRadius get circleBorder62 => BorderRadius.circular(
|
||||
62.h,
|
||||
);
|
||||
@@ -100,9 +113,11 @@ class BorderRadiusStyle {
|
||||
static BorderRadius get customBorderBL8 => BorderRadius.only(
|
||||
bottomLeft: Radius.circular(8.h),
|
||||
);
|
||||
|
||||
static BorderRadius get customBorderTL5 => BorderRadius.vertical(
|
||||
top: Radius.circular(5.h),
|
||||
);
|
||||
|
||||
static BorderRadius get customBorderTL51 => BorderRadius.only(
|
||||
topLeft: Radius.circular(5.h),
|
||||
bottomRight: Radius.circular(5.h),
|
||||
@@ -112,9 +127,11 @@ class BorderRadiusStyle {
|
||||
static BorderRadius get roundedBorder12 => BorderRadius.circular(
|
||||
12.h,
|
||||
);
|
||||
|
||||
static BorderRadius get roundedBorder5 => BorderRadius.circular(
|
||||
5.h,
|
||||
);
|
||||
|
||||
static BorderRadius get roundedBorder8 => BorderRadius.circular(
|
||||
8.h,
|
||||
);
|
||||
|
||||
@@ -8,6 +8,7 @@ class ThemeState extends Equatable {
|
||||
|
||||
@override
|
||||
List<Object?> get props => [themeType];
|
||||
|
||||
ThemeState copyWith({String? themeType}) {
|
||||
return ThemeState(themeType: themeType ?? this.themeType);
|
||||
}
|
||||
|
||||
@@ -14,6 +14,7 @@ class CustomButtonStyles {
|
||||
borderRadius: BorderRadius.circular(15.h),
|
||||
),
|
||||
);
|
||||
|
||||
// text button style
|
||||
static ButtonStyle get none => ButtonStyle(
|
||||
backgroundColor: WidgetStateProperty.all<Color>(Colors.transparent),
|
||||
|
||||
Reference in New Issue
Block a user