We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fc8ca0 + 484eb2b commit 957c9f8Copy full SHA for 957c9f8
lib/image_render.dart
@@ -76,7 +76,10 @@ ImageRender assetImageRender({
76
(context, attributes, element) {
77
final assetPath = _src(attributes)!.replaceFirst('asset:', '');
78
if (_src(attributes)!.endsWith(".svg")) {
79
- return SvgPicture.asset(assetPath);
+ return SvgPicture.asset(
80
+ assetPath,
81
+ width: width ?? _width(attributes),
82
+ height: height ?? _height(attributes));
83
} else {
84
return Image.asset(
85
assetPath,
0 commit comments