widget vector flutter code example
Example 1: flutter svg
dependencies:
flutter_svg: ^0.18.0
flutter pub get
import 'package:flutter_svg/flutter_svg.dart';
SvgPicture.asset("images/doughnut.svg")
Example 2: Flutter svg
final String assetName = 'assets/image.svg';
final Widget svg = SvgPicture.asset(
assetName,
semanticsLabel: 'Acme Logo'
);