After a lot of time and effort searching for the best way to interact with images in flutter I found this article on medium website but I didn't understand it - I think it's complicated for a beginner like me - I followed all the instructions but the source code I get always contains many errors. Is there anyone who has tried it or can help me convert this article into code?
CodePudding user response:
You can use the flutter_svg
package. It's quite simple to use. Instead of displaying a reagular image as you would with:
Image.asset('path_to_img'),
You would use:
SvgPicture.asset('path_to_svg.svg')
Don't forget to add the SVG in your pubspec.yaml
file
CodePudding user response:
Use flutter_svg package.
Documentation is at https://pub.dev/packages/flutter_svg.