From f6069e5dacb93f256b76d9c95f49785d5ba883f3 Mon Sep 17 00:00:00 2001 From: Eric Kok Date: Mon, 11 Jan 2021 09:23:39 +0100 Subject: [PATCH] Fix #485 where images consume the screen height if the source is larger than intrinsic height (given the available horizontal space) --- lib/src/replaced_element.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/replaced_element.dart b/lib/src/replaced_element.dart index 666ced5073..ba50aa3c3f 100644 --- a/lib/src/replaced_element.dart +++ b/lib/src/replaced_element.dart @@ -155,7 +155,6 @@ class ImageContentElement extends ReplacedElement { return new Image.network( src, width: snapshot.data.width, - height: snapshot.data.height, frameBuilder: (ctx, child, frame, _) { if (frame == null) { return Text(alt ?? "", style: context.style.generateTextStyle());