opt image grid

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-01 16:12:10 +08:00
parent 66a191b018
commit e5f2a1b0e5

View File

@@ -496,7 +496,7 @@ class ImageGridRenderObjectElement extends RenderObjectElement {
final height = img.height; final height = img.height;
final ratioWH = width / height; final ratioWH = width / height;
final ratioHW = height / width; final ratioHW = height / width;
imageWidth = ratioWH > 1.5 imageWidth = ratioWH > 1.45
? maxWidth ? maxWidth
: (ratioWH >= 1 || (height > width && ratioHW < 1.5)) : (ratioWH >= 1 || (height > width && ratioHW < 1.5))
? 2 * imageWidth ? 2 * imageWidth