Fixup aspect ratio calculation for non-null widths
This commit is contained in:
parent
7c01611859
commit
db5735e9e2
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class MessageImage extends ConsumerWidget {
|
|||
child: ClipRRect(
|
||||
borderRadius: .all(.circular(8)),
|
||||
child: AspectRatio(
|
||||
aspectRatio: info?.width ?? 1 / (info?.height ?? 1),
|
||||
aspectRatio: (info?.width ?? 1) / (info?.height ?? 1),
|
||||
child: Image(
|
||||
image: CachedNetworkImage(
|
||||
url.toString(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue