Improve image loading

This commit is contained in:
2024-12-29 15:30:31 +08:00
parent a6d4947a23
commit 7ba5260246
5 changed files with 75 additions and 150 deletions

View File

@ -65,8 +65,9 @@ class _AttachmentListState extends State<AttachmentList> {
}
.toDouble();
return Padding(
return Container(
padding: widget.padding ?? EdgeInsets.zero,
constraints: BoxConstraints(maxHeight: constraints.maxHeight),
child: Container(
constraints: constraints,
width: double.infinity,
@ -132,7 +133,7 @@ class _AttachmentListState extends State<AttachmentList> {
child: AttachmentItem(
data: ele,
heroTag: heroTags[idx],
fit: widget.fit,
fit: BoxFit.cover,
),
),
onTap: () {