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.
1 parent 5de96d7 commit 484eb2bCopy full SHA for 484eb2b
lib/image_render.dart
@@ -75,7 +75,10 @@ ImageRender assetImageRender({
75
(context, attributes, element) {
76
final assetPath = _src(attributes)!.replaceFirst('asset:', '');
77
if (_src(attributes)!.endsWith(".svg")) {
78
- return SvgPicture.asset(assetPath);
+ return SvgPicture.asset(
79
+ assetPath,
80
+ width: width ?? _width(attributes),
81
+ height: height ?? _height(attributes));
82
} else {
83
return Image.asset(
84
assetPath,
0 commit comments