mod: 动态长图

This commit is contained in:
guozhigq
2024-01-14 19:17:17 +08:00
parent 8f661337f5
commit 9294c8bcdf
2 changed files with 31 additions and 14 deletions

View File

@ -850,13 +850,12 @@ InlineSpan buildContent(
child: LayoutBuilder(
builder: (BuildContext context, BoxConstraints box) {
double maxHeight = box.maxWidth * 0.6; // 设置最大高度
double width = (box.maxWidth / 2).truncateToDouble();
// double width = (box.maxWidth / 2).truncateToDouble();
double height = ((box.maxWidth /
2 *
pictureItem['img_height'] /
pictureItem['img_width']))
.truncateToDouble();
print('width: $width, height: $height');
return GestureDetector(
onTap: () {
showDialog(