Skip to content

Commit b6d1173

Browse files
TheCarpetMerchantSub6Resources
authored andcommitted
Changed shrinkWrap for BoxFit.contain, seemingly achieves the same
1 parent 3e5b069 commit b6d1173

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: lib/src/builtins/image_builtin.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,11 @@ class ImageBuiltIn extends HtmlExtension {
199199
return CssBoxWidget(
200200
style: imageStyle,
201201
childIsReplaced: true,
202-
shrinkWrap: true,
203202
child: Image.network(
204203
element.src,
205204
width: imageStyle.width?.value,
206205
height: imageStyle.height?.value,
207-
fit: BoxFit.fill,
206+
fit: BoxFit.contain,
208207
headers: networkHeaders,
209208
errorBuilder: (ctx, error, stackTrace) {
210209
return Text(

0 commit comments

Comments
 (0)