Skip to content

Commit

Permalink
[Issue Fix] Deprecated usage of the color in SvgPicture
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhavikmakwana committed Feb 20, 2024
1 parent 9dcc7e9 commit ef95a3c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/screen/dashboard/dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ class BottomAppBarItem extends StatelessWidget {
children: [
SvgPicture.asset(
svgPath,
color: isSelected ? AppColors.dark : null,
colorFilter: ColorFilter.mode(
isSelected ? AppColors.dark : AppColors.gray,
BlendMode.srcIn,
),
),
const SizedBox(height: 8),
IndicatorDot(isSelected: isSelected),
Expand Down

0 comments on commit ef95a3c

Please sign in to comment.