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.


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 javaer1[email protected] to delete if infringement.

edited at


Login to comment


Flutter image is not showing

Images in SVG Image tags not showing up in Chrome, but displays locally?

SVG background image not showing

SVG <image> not showing on iphone

Flutter ImageIcon showing image white or black

How to change width of flutter_svg image?

svg image as button in flutter

Svg icon not showing in toast-ui vue image editor

SVG/D3 - g with embedded svg image not showing up (g is size 0 by 0 and svg image is no where to be seen)

Show svg or image from network depending on type flutter

Flutter Svg image dosen't load

svg image not showing on react.js

SVG background image is not showing as it should in Safari/Safari Mobile

SVG image file not showing full image

Showing a PNG from bytes inside a <image> SVG element

SVG image not showing in simple android cordova table

Flutter image cropper not showing image to be cropped

Showing SVG image with 'react-native-svg' library, however encounter 'Unrecognized font family' error in iOS (Android works fine.)

Part of image is not showing when added to AppBar in flutter

How to fitWidth for an image in flutter while only showing the bottom of the image?

Flutter, image_picker showing nothing when pressed

D3 Image SVG not showing

SVG image is not showing properly in mobile phone

Flutter : Carousel image not showing?

Image picker giving error showing flutter

Flutter : image assets are not showing in android build

How can I change color with GestureDetector of svg image and Flutter?

How to correctly size Flutter SVG image?

how to create a splash screen in Flutter with svg image