Skip to content

Commit 3e5b069

Browse files
TheCarpetMerchantSub6Resources
authored andcommitted
Made network image be shrinkWrapped to work with auto margins in Flutter 3.10
1 parent 4d1667c commit 3e5b069

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/builtins/image_builtin.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ class ImageBuiltIn extends HtmlExtension {
199199
return CssBoxWidget(
200200
style: imageStyle,
201201
childIsReplaced: true,
202+
shrinkWrap: true,
202203
child: Image.network(
203204
element.src,
204205
width: imageStyle.width?.value,

0 commit comments

Comments
 (0)