fix reaction layout
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
include ':app'
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user