SvgWidget constructor
const
SvgWidget({
- required String path,
- Key? key,
- double? width,
- double? height,
- AlignmentGeometry alignment = Alignment.center,
- ColorFilter? colorFilter,
- BoxFit fit = BoxFit.contain,
- String? package = 'cross_flutter_libarch_uicomponents',
- bool isExternalResource = false,
- bool excludeFromSemantics = false,
- SvgWidgetType svgWidgetType = SvgWidgetType.asset,
- String? semanticsLabel,
- Widget onBase64DecodeFail()?,
Creates a widget that displays an SVG asset.
Implementation
const SvgWidget({
required this.path,
super.key,
this.width,
this.height,
this.alignment = Alignment.center,
this.colorFilter,
this.fit = BoxFit.contain,
this.package = 'cross_flutter_libarch_uicomponents',
this.isExternalResource = false,
this.excludeFromSemantics = false,
this.svgWidgetType = SvgWidgetType.asset,
this.semanticsLabel,
this.onBase64DecodeFail,
});