How to Use SVG or Vector Drawables in Flutter SDK

Developine picture Developine · Apr 28, 2019 · Viewed 9k times · Source

I want to use SVG/Vector Graphics in my Flutter Application. is there any library or Dart Package which can be used?

Answer

user11065582 picture user11065582 · Apr 28, 2019

steps

  1. use this plugin flutter_svg https://pub.dartlang.org/packages/flutter_svg
  2. adding images to Assets
  3. import and adding this widget
SvgPicture.asset('assets/images/Defect/icon${values[index].childId}.svg', height: 50.0,),