🐛 Bug fixes

This commit is contained in:
LittleSheep 2024-08-21 13:14:40 +08:00
parent cc1e0599aa
commit 1d7affcd84

View File

@ -157,7 +157,7 @@ class _AttachmentListState extends State<AttachmentList> {
final element = _attachmentsMeta[idx];
idx++;
if (element == null) return const SizedBox();
double ratio = element.metadata!['ratio']?.toDouble() ?? 16 / 9;
double ratio = element.metadata?['ratio']?.toDouble() ?? 16 / 9;
return Container(
constraints: BoxConstraints(
maxWidth: widget.columnMaxWidth,