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