fix: analyzer

This commit is contained in:
Alex
2024-12-13 17:41:15 +03:00
parent 7715da6b8e
commit a58fbf1ee4
22 changed files with 65 additions and 64 deletions

View File

@@ -25,7 +25,7 @@ class AppDecoration {
);
static BoxDecoration get fillDeepOrange => BoxDecoration(
color: appTheme.deepOrange900.withOpacity(0.8),
color: appTheme.deepOrange900.withValues(alpha: 0.8),
);
static BoxDecoration get fillGray => BoxDecoration(
@@ -41,7 +41,7 @@ class AppDecoration {
);
static BoxDecoration get fillGreenA => BoxDecoration(
color: appTheme.greenA700.withOpacity(0.8),
color: appTheme.greenA700.withValues(alpha: 0.8),
);
static BoxDecoration get fillPrimary => BoxDecoration(
@@ -77,7 +77,7 @@ class BorderRadiusStyle {
color: appTheme.whiteA700,
boxShadow: [
BoxShadow(
color: appTheme.black900.withOpacity(0.15),
color: appTheme.black900.withValues(alpha: 0.15),
spreadRadius: 2,
blurRadius: 2,
offset: Offset(

View File

@@ -175,7 +175,7 @@ class PrimaryColors {
Color get lightGray => Color(0xFFCECECE);
Color get transparentBlue => Color(0xFF2F80ED).withOpacity(0.1);
Color get transparentBlue => Color(0xFF2F80ED).withValues(alpha: 0.1);
Color get lightGray0 => Color(0xFFF6F6F6);
@@ -185,7 +185,7 @@ class PrimaryColors {
Color get red => Color(0xFFCD4141);
Color get transparentBlack => Color(0xFF1313264).withOpacity(0.3);
Color get transparentBlack => Color(0xFF1313264).withValues(alpha: 0.3);
}
PrimaryColors get appTheme => ThemeHelper().themeColor();