I am using flame_svg: ^0.0.1
package from flutter for rendering svg when i try to load the svg it gives the below error
flutter: The following assertion was thrown in _getDefinitionPaint:
flutter: Failed to find definition for url(#paint0_linear)
flutter: This library only supports <defs> and xlink:href references that are defined ahead of their
flutter: references.
flutter: This error can be caused when the desired definition is defined after the element referring to it
flutter: (e.g. at the end of the file), or defined in another file.
flutter: This error is treated as non-fatal, but your SVG file will likely not render as intended
Go to your SVG file and you will find the
<def>
tag at the bottom of the JSON. you need to put that on the top after the<svg>
tag.