Check out example codes for "Flutter svg". It will help you in understanding the concepts better.

Code Example 1

dependencies:
            flutter_svg: ^0.18.0
flutter pub get


import 'package:flutter_svg/flutter_svg.dart';
		SvgPicture.asset("images/doughnut.svg")

Code Example 2

final String assetName = 'assets/image.svg';
final Widget svg = SvgPicture.asset(
  assetName,
  semanticsLabel: 'Acme Logo'
);

Learn ReactJs, React Native from akashmittal.com