Svg image not showing in flutter

Ash Khachatryan

SvgPicture.asset('assets/images/close_icon.svg', color: Colors.white,)

not showing image. output error is

The following StateError was thrown resolving a single-frame picture stream:

Bad state: Could not parse "currentColor" as a color.

francis_m

You can open your svg asset assets/images/close_icon.svg and edit color property from currentColor to any other valid color (like black or white).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related