While making the image height fixed is important to avoid layout
changes, there is no impact to letting the image take as much
width as it needs, dynamically.
For images that are wider than they are tall, this enables the user
to see the full image without cropping the left and right parts of
the image.
Tested locally on both compact and non-compact modes.
---
lib/widget/link_preview.dart | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/widget/link_preview.dart b/lib/widget/link_preview.dart
index 3f248c3..698fc13 100644
--- a/lib/widget/link_preview.dart+++ b/lib/widget/link_preview.dart
@@ -58,7 +58,6 @@ class _PhotoPreview extends StatelessWidget {
},
child: Image.network(
preview.url.toString(),
- width: 250, height: 250,
fit: BoxFit.cover,
filterQuality: FilterQuality.medium,
base-commit: 09f6ece77bbf9e3727541eea66b07e2986779bf0
--
2.39.1