Draw an SVG icon in Flutter without a package: SVG path commands to CustomPainter
by Chanpenh Yorn
flutter_svg is the right answer when you need to show a lot of SVG files. But for a single icon you want to animate, recolour per path, clip with, or ship with zero dependencies, a plain CustomPainter...
Read on dev.to