fix: 评论回复多张图片拉伸

This commit is contained in:
guozhigq
2024-02-09 09:32:28 +08:00
parent 94f3b7c1e4
commit d0f036ec35

View File

@ -797,8 +797,7 @@ InlineSpan buildContent(
),
),
);
}
if (len > 1) {
} else if (len > 1) {
List<Widget> list = [];
for (var i = 0; i < len; i++) {
picList.add(content.pictures[i]['img_src']);
@ -816,10 +815,11 @@ InlineSpan buildContent(
);
},
child: NetworkImgLayer(
src: content.pictures[i]['img_src'],
width: box.maxWidth,
height: box.maxWidth,
),
src: content.pictures[i]['img_src'],
width: box.maxWidth,
height: box.maxWidth,
origAspectRatio: content.pictures[i]['img_width'] /
content.pictures[i]['img_height']),
);
},
),