fix : title and pic home widget

This commit is contained in:
2025-09-20 12:25:10 +03:30
parent d1783ae14d
commit 0855489952
5 changed files with 32 additions and 20 deletions

View File

@@ -430,6 +430,9 @@ class $AssetsImagesGen {
/// File path: assets/images/inner_splash.webp
AssetGenImage get innerSplash => const AssetGenImage('assets/images/inner_splash.webp');
/// File path: assets/images/live_chicken.jpg
AssetGenImage get liveChicken => const AssetGenImage('assets/images/live_chicken.jpg');
/// File path: assets/images/outter_splash.webp
AssetGenImage get outterSplash => const AssetGenImage('assets/images/outter_splash.webp');
@@ -443,7 +446,15 @@ class $AssetsImagesGen {
AssetGenImage get selectRole => const AssetGenImage('assets/images/select_role.webp');
/// List of all assets
List<AssetGenImage> get values => [chicken, innerSplash, outterSplash, placeHolder, poultryAction, selectRole];
List<AssetGenImage> get values => [
chicken,
innerSplash,
liveChicken,
outterSplash,
placeHolder,
poultryAction,
selectRole,
];
}
class $AssetsLogosGen {

View File

@@ -54,7 +54,7 @@ class InformationTagData {
this.height,
this.heightIcon,
this.widthIcon,
this.blendMode
this.blendMode,
}) : assert(
(labelVecIcon != null) ^ (labelSvgIcon != null),
'Either labelVecIcon or labelSvgIcon must be provided, but not both.',
@@ -92,7 +92,7 @@ class InformationTagData {
Color? unitColor,
int? width,
int? height,
BlendMode? blendMode
BlendMode? blendMode,
}) {
return InformationTagData(
labelVecIcon: labelVecIcon ?? this.labelVecIcon,
@@ -150,12 +150,15 @@ class InformationTag extends StatelessWidget {
spacing: 4,
children: [
data.labelVecIcon != null
? SvgGenImage.vec(data.labelVecIcon!).svg(
width: (data.widthIcon ?? 24).w,
height: (data.heightIcon ?? 24).h,
colorFilter: ColorFilter.mode(
data.iconColor ?? AppColor.mediumGreyDarkActive,
data.blendMode?? BlendMode.srcIn,
? ClipRRect(
borderRadius: BorderRadius.circular(8),
child: SvgGenImage.vec(data.labelVecIcon!).svg(
width: (data.widthIcon ?? 24).w,
height: (data.heightIcon ?? 24).h,
colorFilter: ColorFilter.mode(
data.iconColor ?? AppColor.mediumGreyDarkActive,
data.blendMode ?? BlendMode.srcIn,
),
),
)
: SvgGenImage(data.labelSvgIcon!).svg(
@@ -163,7 +166,7 @@ class InformationTag extends StatelessWidget {
height: (data.heightIcon ?? 24).h,
colorFilter: ColorFilter.mode(
data.iconColor ?? AppColor.mediumGreyDarkActive,
data.blendMode?? BlendMode.srcIn,
data.blendMode ?? BlendMode.srcIn,
),
),
Visibility(