opt: image view

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-11-22 14:40:40 +08:00
parent e7016286af
commit bed44382f4
2 changed files with 14 additions and 19 deletions

View File

@@ -71,12 +71,12 @@ Widget image(
ClipRRect(
borderRadius: BorderRadius.circular(12),
child: NetworkImgLayer(
isLongPic: picArr[index].isLongPic,
src: picArr[index].url,
width: imageWidth,
height: imageHeight,
origAspectRatio:
picArr[index].safeWidth / picArr[index].safeHeight,
isLongPic: () => picArr[index].isLongPic,
callback: () =>
picArr[index].safeWidth <= picArr[index].safeHeight,
),
),
if (picArr[index].isLongPic)