[MessageWidget] Fix threadParticipants indicator
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -565,7 +565,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
if (showInChannel || showThreadReplyIndicator) ...[
|
if (showInChannel || showThreadReplyIndicator) ...[
|
||||||
if (showThreadParticipants)
|
if (showThreadParticipants)
|
||||||
SizedBox.fromSize(
|
SizedBox.fromSize(
|
||||||
size: Size((threadParticipants.length * 8.0) + 10, 16),
|
size: Size((threadParticipants.length * 8.0) + 8, 16),
|
||||||
child: _buildThreadParticipantsIndicator(),
|
child: _buildThreadParticipantsIndicator(),
|
||||||
),
|
),
|
||||||
InkWell(
|
InkWell(
|
||||||
@@ -587,7 +587,7 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
),
|
),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if (widget.reverse) children = children.reversed.toList();
|
// if (widget.reverse) children = children.reversed.toList();
|
||||||
|
|
||||||
final showThreadTail = !(hasUrlAttachments || isGiphy || isOnlyEmoji) &&
|
final showThreadTail = !(hasUrlAttachments || isGiphy || isOnlyEmoji) &&
|
||||||
(showThreadReplyIndicator || showInChannel);
|
(showThreadReplyIndicator || showInChannel);
|
||||||
@@ -648,18 +648,20 @@ class _MessageWidgetState extends State<MessageWidget> {
|
|||||||
var padding = 0.0;
|
var padding = 0.0;
|
||||||
return Stack(
|
return Stack(
|
||||||
children: widget.message.threadParticipants.map((user) {
|
children: widget.message.threadParticipants.map((user) {
|
||||||
padding += 10.0;
|
padding += 8.0;
|
||||||
return Positioned(
|
return Positioned(
|
||||||
left: padding - 10,
|
right: padding - 8,
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
top: 0,
|
top: 0,
|
||||||
child: Material(
|
child: Container(
|
||||||
color: Colors.white,
|
decoration: BoxDecoration(
|
||||||
clipBehavior: Clip.antiAlias,
|
shape: BoxShape.circle,
|
||||||
shape: CircleBorder(),
|
color: StreamChatTheme.of(context).colorTheme.white,
|
||||||
|
),
|
||||||
|
padding: const EdgeInsets.all(1),
|
||||||
child: UserAvatar(
|
child: UserAvatar(
|
||||||
user: user,
|
user: user,
|
||||||
constraints: BoxConstraints.loose(Size.fromRadius(8)),
|
constraints: BoxConstraints.loose(Size.fromRadius(7)),
|
||||||
showOnlineStatus: false,
|
showOnlineStatus: false,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user