fix: make the list work correctly with separators and findChildIndexCallback

This commit is contained in:
Salvatore Giordano
2021-09-08 13:14:53 +02:00
parent d48baf7274
commit 9b1d94693a
2 changed files with 67 additions and 78 deletions
@@ -74,7 +74,6 @@ class MessageWidget extends StatefulWidget {
this.showInChannelIndicator = false,
this.onReplyTap,
this.onThreadTap,
this.actualIndex,
this.showUsername = true,
this.showTimestamp = true,
this.showReactions = true,
@@ -258,8 +257,6 @@ class MessageWidget extends StatefulWidget {
}..addAll(customAttachmentBuilders ?? {}),
super(key: key);
final int? actualIndex;
/// Function called on mention tap
final void Function(User)? onMentionTap;
@@ -593,10 +590,6 @@ class _MessageWidgetState extends State<MessageWidget>
@override
Widget build(BuildContext context) {
super.build(context);
return Container(
decoration: BoxDecoration(border: Border.all()),
child: Text('${widget.message.text ?? 'valu'} ${widget.actualIndex}'),
);
final avatarWidth =
widget.messageTheme.avatarTheme?.constraints.maxWidth ?? 40;
final bottomRowPadding =