fix : PoultryScienceHomeLogic colors
This commit is contained in:
@@ -11,6 +11,7 @@ class InformationTagData {
|
||||
final Color? labelTitleColor;
|
||||
final TextStyle? labelTitleStyle;
|
||||
final LinearGradient? labelGradient;
|
||||
final BlendMode? blendMode;
|
||||
final int? widthIcon;
|
||||
final int? heightIcon;
|
||||
|
||||
@@ -53,6 +54,7 @@ class InformationTagData {
|
||||
this.height,
|
||||
this.heightIcon,
|
||||
this.widthIcon,
|
||||
this.blendMode
|
||||
}) : assert(
|
||||
(labelVecIcon != null) ^ (labelSvgIcon != null),
|
||||
'Either labelVecIcon or labelSvgIcon must be provided, but not both.',
|
||||
@@ -90,6 +92,7 @@ class InformationTagData {
|
||||
Color? unitColor,
|
||||
int? width,
|
||||
int? height,
|
||||
BlendMode? blendMode
|
||||
}) {
|
||||
return InformationTagData(
|
||||
labelVecIcon: labelVecIcon ?? this.labelVecIcon,
|
||||
@@ -113,6 +116,7 @@ class InformationTagData {
|
||||
unitColor: unitColor ?? this.unitColor,
|
||||
width: width ?? this.width,
|
||||
height: height ?? this.height,
|
||||
blendMode: blendMode ?? this.blendMode,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -133,7 +137,6 @@ class InformationTag extends StatelessWidget {
|
||||
// Left side with icon and title
|
||||
Expanded(
|
||||
child: Container(
|
||||
|
||||
decoration: BoxDecoration(
|
||||
color: data.labelBgColor,
|
||||
borderRadius: BorderRadius.only(
|
||||
@@ -152,7 +155,7 @@ class InformationTag extends StatelessWidget {
|
||||
height: (data.heightIcon ?? 24).h,
|
||||
colorFilter: ColorFilter.mode(
|
||||
data.iconColor ?? AppColor.mediumGreyDarkActive,
|
||||
BlendMode.srcIn,
|
||||
data.blendMode?? BlendMode.srcIn,
|
||||
),
|
||||
)
|
||||
: SvgGenImage(data.labelSvgIcon!).svg(
|
||||
@@ -160,7 +163,7 @@ class InformationTag extends StatelessWidget {
|
||||
height: (data.heightIcon ?? 24).h,
|
||||
colorFilter: ColorFilter.mode(
|
||||
data.iconColor ?? AppColor.mediumGreyDarkActive,
|
||||
BlendMode.srcIn,
|
||||
data.blendMode?? BlendMode.srcIn,
|
||||
),
|
||||
),
|
||||
Visibility(
|
||||
|
||||
Reference in New Issue
Block a user