fix: Fix case when image is null

This commit is contained in:
Deven Joshi
2020-11-10 19:38:05 +05:30
parent 755dd511ed
commit 477673aa28
+4 -2
View File
@@ -356,9 +356,11 @@ class _MessageWidgetState extends State<MessageWidget> {
return Column(
children: [
if (urlAttachment.imageUrl != null)
SizedBox(
height: 16.0,
),
if (urlAttachment.imageUrl != null)
Container(
margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Stack(
@@ -370,8 +372,8 @@ class _MessageWidgetState extends State<MessageWidget> {
bottom: 0.0,
child: Container(
child: Padding(
padding:
const EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0),
padding: const EdgeInsets.only(
top: 8.0, left: 8.0, right: 8.0),
child: Text(
hostDisplayName,
style: TextStyle(