Skip to content

Commit ef95a3c

Browse files
[Issue Fix] Deprecated usage of the color in SvgPicture
1 parent 9dcc7e9 commit ef95a3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/screen/dashboard/dashboard.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ class BottomAppBarItem extends StatelessWidget {
140140
children: [
141141
SvgPicture.asset(
142142
svgPath,
143-
color: isSelected ? AppColors.dark : null,
143+
colorFilter: ColorFilter.mode(
144+
isSelected ? AppColors.dark : AppColors.gray,
145+
BlendMode.srcIn,
146+
),
144147
),
145148
const SizedBox(height: 8),
146149
IndicatorDot(isSelected: isSelected),

0 commit comments

Comments
 (0)