'Is there any way I can modify SVG code in a function with Flutter?
So i have to create about 1000 svgs; however, all of them have the same code but different text on it. Is there a way I can display an svg in a for loop, then modify the code the change the text in the svg code? For example,
for(int i = 0;i<1000;i++){
/*display this -->*/ MarkerIcon.svgAsset(assetName: 'assets/svg/${svgName.toString()}.svg'
//Code to change svg name so that it will modify that one svg file and print it
//with the a different text on the next iteration
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
