Open BillTheGoat opened 4 years ago
I can work around this issue by saving the SVG without the <use>
and closing tag as a String
in a dart file, and then concatenating with the pertinent <use>
and closing tags. Not ideal, but it loads.
I can work around this issue by saving the SVG without the
<use>
and closing tag as aString
in a dart file, and then concatenating with the pertinent<use>
and closing tags. Not ideal, but it loads.
is the cpu performance and memory usage higher than rendering with separated svg files?
Loading multiple files will always be more costly than loading a single file, especially when you need all the files in memory at once anyway.
I would like to use SVG sprite files for colored icons. Using the example flutter project, I can get an icon to load if I insert a
<use >
tag within the svg sprite file.The SVG below works using
However I would like to be able to reference specific icons (
<symbol>
tags) programmatically. If I comment out the<use>
tag and try the code below or variations on the href parameter (likeassets/flutter_assets/assets/simple/SVG-sprite-icons.svg#news
), I cannot get anything to display: