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( return Column(
children: [ children: [
if (urlAttachment.imageUrl != null)
SizedBox( SizedBox(
height: 16.0, height: 16.0,
), ),
if (urlAttachment.imageUrl != null)
Container( Container(
margin: EdgeInsets.symmetric(horizontal: 8.0), margin: EdgeInsets.symmetric(horizontal: 8.0),
child: Stack( child: Stack(
@@ -370,8 +372,8 @@ class _MessageWidgetState extends State<MessageWidget> {
bottom: 0.0, bottom: 0.0,
child: Container( child: Container(
child: Padding( child: Padding(
padding: padding: const EdgeInsets.only(
const EdgeInsets.only(top: 8.0, left: 8.0, right: 8.0), top: 8.0, left: 8.0, right: 8.0),
child: Text( child: Text(
hostDisplayName, hostDisplayName,
style: TextStyle( style: TextStyle(