Compress video

This commit is contained in:
2024-12-26 23:57:43 +08:00
parent 2851780dda
commit 91c85e8a58
8 changed files with 238 additions and 20 deletions

View File

@ -215,7 +215,7 @@ class _AttachmentItemContentVideoState extends State<_AttachmentItemContentVideo
behavior: HitTestBehavior.opaque,
child: Stack(
children: [
if (widget.data.thumbnail != null)
if (widget.data.thumbnail?.isNotEmpty ?? false)
AutoResizeUniversalImage(
sn.getAttachmentUrl(widget.data.thumbnail!),
fit: BoxFit.cover,