createCompatVectorGraphic function
VectorGraphic
createCompatVectorGraphic({
- Key? key,
- required BytesLoader loader,
- double? width,
- double? height,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- Clip clipBehavior = Clip.hardEdge,
- WidgetBuilder? placeholderBuilder,
- VectorGraphicsErrorWidget? errorBuilder,
- ColorFilter? colorFilter,
- Animation<
double> ? opacity, - RenderingStrategy strategy = RenderingStrategy.picture,
- bool clipViewbox = true,
- bool matchTextDirection = false,
A vector graphic/flutter_svg compatibility shim.
Implementation
VectorGraphic createCompatVectorGraphic({
Key? key,
required BytesLoader loader,
double? width,
double? height,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
String? semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
WidgetBuilder? placeholderBuilder,
VectorGraphicsErrorWidget? errorBuilder,
ColorFilter? colorFilter,
Animation<double>? opacity,
RenderingStrategy strategy = RenderingStrategy.picture,
bool clipViewbox = true,
bool matchTextDirection = false,
}) {
return VectorGraphic._(
key: key,
loader: loader,
width: width,
height: height,
fit: fit,
alignment: alignment,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
placeholderBuilder: placeholderBuilder,
errorBuilder: errorBuilder,
colorFilter: colorFilter,
opacity: opacity,
strategy: strategy,
clipViewbox: clipViewbox,
matchTextDirection: matchTextDirection,
);
}