fix reaction layout

This commit is contained in:
Salvatore Giordano
2020-03-03 18:23:54 +01:00
parent c686540306
commit 1ec09bac63
2 changed files with 9 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
include ':app'
+8 -3
View File
@@ -367,7 +367,8 @@ class _MessageWidgetState extends State<MessageWidget>
crossAxisAlignment: crossAxisAlignment:
isMyMessage ? CrossAxisAlignment.end : CrossAxisAlignment.start, isMyMessage ? CrossAxisAlignment.end : CrossAxisAlignment.start,
children: <Widget>[ children: <Widget>[
streamChannel.channel.config.reactions (streamChannel.channel.config.reactions &&
nOfAttachmentWidgets == 0)
? Align( ? Align(
child: _buildReactions(), child: _buildReactions(),
alignment: isMyMessage alignment: isMyMessage
@@ -378,7 +379,9 @@ class _MessageWidgetState extends State<MessageWidget>
Stack( Stack(
overflow: Overflow.visible, overflow: Overflow.visible,
children: <Widget>[ children: <Widget>[
_buildReactionPaint(), nOfAttachmentWidgets == 0
? _buildReactionPaint()
: SizedBox(),
Padding( Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
right: isMyMessage ? 0.0 : 8.0, right: isMyMessage ? 0.0 : 8.0,
@@ -420,7 +423,9 @@ class _MessageWidgetState extends State<MessageWidget>
), ),
], ],
); );
} else { }
if (nOfAttachmentWidgets > 0) {
column.children.insert( column.children.insert(
0, 0,
streamChannel.channel.config.reactions streamChannel.channel.config.reactions