fix : color Card Icon -> All App

This commit is contained in:
2025-09-13 12:35:07 +03:30
parent b179cb8e92
commit d05ee5b43f

View File

@@ -20,7 +20,7 @@ class CardIcon extends StatelessWidget {
this.borderWidth = 1,
this.iconWidth = 48,
this.iconHeight = 48,
this.iconColor = AppColor.blueNormal,
this.iconColor ,
}) : assert((svgIcon != null) || (vecIcon != null), 'Either svgIcon or vecIcon must be provided');
final String title;
@@ -42,7 +42,7 @@ class CardIcon extends StatelessWidget {
//icon
final double iconWidth;
final double iconHeight;
final Color iconColor ;
final Color? iconColor ;
@override
Widget build(BuildContext context) {
@@ -67,13 +67,13 @@ class CardIcon extends StatelessWidget {
fit: BoxFit.cover,
width: iconWidth.w,
height: iconHeight.h,
colorFilter: ColorFilter.mode(iconColor, BlendMode.srcIn),
colorFilter: iconColor!= null ? ColorFilter.mode(iconColor!, BlendMode.srcIn) : null,
)
: SvgGenImage.vec(vecIcon!).svg(
fit: BoxFit.fill,
width: iconWidth.w,
height: iconHeight.h,
colorFilter: ColorFilter.mode(iconColor, BlendMode.srcIn),
colorFilter: iconColor!= null ? ColorFilter.mode(iconColor!, BlendMode.srcIn) : null,
),
Text(
title,