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