ui/widget/svg/src/io library

Functions

svgFromAsset(String asset, {Alignment alignment = Alignment.center, bool excludeFromSemantics = false, BoxFit fit = BoxFit.contain, double? height, Key? key, String? package, WidgetBuilder? placeholderBuilder, String? semanticsLabel, double? width}) Widget
Instantiates a widget rendering an SVG picture from an AssetBundle.
svgFromBytes(Uint8List bytes, {Key? key, Alignment alignment = Alignment.center, bool excludeFromSemantics = false, BoxFit fit = BoxFit.cover, double? width, double? height, WidgetBuilder? placeholderBuilder, String? semanticsLabel}) Widget
Instantiates a widget rendering an SVG picture from an Uint8List.
svgFromFile(File file, {Key? key, Alignment alignment = Alignment.center, bool excludeFromSemantics = false, BoxFit fit = BoxFit.cover, double? width, double? height, WidgetBuilder? placeholderBuilder, String? semanticsLabel}) Widget
Instantiates a widget rendering an SVG picture from a File.