SvgAssetExtension extension

Provides functions for converting an SvgAsset to a SvgPicture.

class Foo extends StatelessWidget {
  final SvgAsset asset;

  @override
  Widget build(BuildContext context) => Container(
    child: asset(
      width: 100,
      height: 100,
    ),
  );
}
on

Methods

call({Key? key, bool matchTextDirection = false, double? width, double? height, BoxFit fit = BoxFit.contain, AlignmentGeometry alignment = Alignment.center, bool allowDrawingOutsideViewBox = false, WidgetBuilder? placeholderBuilder, String? semanticsLabel, bool excludeFromSemantics = false, Clip clipBehavior = Clip.hardEdge, SvgTheme theme = const SvgTheme(), ColorFilter? colorFilter, Color? color, BlendMode colorBlendMode = BlendMode.srcIn, bool cacheColorFilter = false}) → SvgPicture

Available on SvgAsset, provided by the SvgAssetExtension extension

Converts an SvgAsset to an SvgPicture.