fix: Fix case when image is null
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user