SvgWidget constructor

const SvgWidget({
  1. required String path,
  2. Key? key,
  3. double? width,
  4. double? height,
  5. AlignmentGeometry alignment = Alignment.center,
  6. ColorFilter? colorFilter,
  7. BoxFit fit = BoxFit.contain,
  8. String? package = 'cross_flutter_libarch_uicomponents',
  9. bool isExternalResource = false,
  10. bool excludeFromSemantics = false,
  11. SvgWidgetType svgWidgetType = SvgWidgetType.asset,
  12. String? semanticsLabel,
  13. 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,
});