From a91f1c500044e0c07bb225fa3247f0f47458fb47 Mon Sep 17 00:00:00 2001 From: Salvatore Giordano Date: Tue, 10 Nov 2020 17:28:10 +0100 Subject: [PATCH] fix image alignent --- lib/src/message_widget.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/message_widget.dart b/lib/src/message_widget.dart index 55d08424..6f81f149 100644 --- a/lib/src/message_widget.dart +++ b/lib/src/message_widget.dart @@ -359,6 +359,7 @@ class _MessageWidgetState extends State { return Stack( children: [ Column( + crossAxisAlignment: CrossAxisAlignment.stretch, children: [ if (urlAttachment.imageUrl != null) SizedBox( @@ -370,7 +371,11 @@ class _MessageWidgetState extends State { child: Stack( clipBehavior: Clip.antiAlias, children: [ - CachedNetworkImage(imageUrl: urlAttachment.imageUrl), + Center( + child: CachedNetworkImage( + imageUrl: urlAttachment.imageUrl, + ), + ), Positioned( left: 0.0, bottom: 0.0,