From 7c01611859955290f8709d0b62570acbd31b58df Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 20 Jun 2026 23:39:05 -0400 Subject: [PATCH] Default to 1:1 when no width/height are given for an image --- lib/widgets/message_image.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/message_image.dart b/lib/widgets/message_image.dart index 8865a5c..f4df997 100644 --- a/lib/widgets/message_image.dart +++ b/lib/widgets/message_image.dart @@ -19,7 +19,7 @@ class MessageImage extends ConsumerWidget { child: ClipRRect( borderRadius: .all(.circular(8)), child: AspectRatio( - aspectRatio: info!.width! / info!.height!, + aspectRatio: info?.width ?? 1 / (info?.height ?? 1), child: Image( image: CachedNetworkImage( url.toString(),