fix image alignent

This commit is contained in:
Salvatore Giordano
2020-11-10 17:28:10 +01:00
parent 2d125ea836
commit a91f1c5000
+6 -1
View File
@@ -359,6 +359,7 @@ class _MessageWidgetState extends State<MessageWidget> {
return Stack( return Stack(
children: [ children: [
Column( Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
if (urlAttachment.imageUrl != null) if (urlAttachment.imageUrl != null)
SizedBox( SizedBox(
@@ -370,7 +371,11 @@ class _MessageWidgetState extends State<MessageWidget> {
child: Stack( child: Stack(
clipBehavior: Clip.antiAlias, clipBehavior: Clip.antiAlias,
children: [ children: [
CachedNetworkImage(imageUrl: urlAttachment.imageUrl), Center(
child: CachedNetworkImage(
imageUrl: urlAttachment.imageUrl,
),
),
Positioned( Positioned(
left: 0.0, left: 0.0,
bottom: 0.0, bottom: 0.0,