I have been trying to load an SVG asset on my flutter screen, however this error pops up :
======== Exception caught by SVG ==================
The following FormatException was thrown resolving a single-frame picture stream:
Invalid radix-10 number (at character 1)
215.98500072956085
This is how i try to load my image :
child: SvgPicture.asset(
'assets/images/line.svg',
semanticsLabel: 'shape'
),
I cannot figure out where the error might come from, did anyone face the same issue ?
CodePudding user response:
Try to open your svg file in text editor and check for
- the markup includes only English characters (maybe point or other character was input in not English keyboard layout)
- markup does not include comments <!---
- the markup is similar to the markup of working svg images