Merge pull request #40 from nosmirck/feature/onTapUserMessage
Added onUserAvatarTap
This commit is contained in:
@@ -67,6 +67,7 @@ class MessageListView extends StatefulWidget {
|
||||
this.showOtherMessageUsername = false,
|
||||
this.showVideoFullScreen = true,
|
||||
this.onMentionTap,
|
||||
this.onUserAvatarTap,
|
||||
this.onMessageActions,
|
||||
this.attachmentBuilders,
|
||||
this.dateDividerBuilder,
|
||||
@@ -97,6 +98,9 @@ class MessageListView extends StatefulWidget {
|
||||
/// Function called on message mention tap
|
||||
final void Function(User) onMentionTap;
|
||||
|
||||
/// Function called on User Avatar tap
|
||||
final void Function(User) onUserAvatarTap;
|
||||
|
||||
/// Function called on message long press
|
||||
final Function(BuildContext, Message) onMessageActions;
|
||||
|
||||
@@ -164,6 +168,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
showOtherMessageUsername:
|
||||
widget.showOtherMessageUsername,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
onUserAvatarTap: widget.onUserAvatarTap,
|
||||
onMessageActions: widget.onMessageActions,
|
||||
attachmentBuilders: widget.attachmentBuilders,
|
||||
),
|
||||
@@ -227,6 +232,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
showOtherMessageUsername: widget.showOtherMessageUsername,
|
||||
showVideoFullScreen: widget.showVideoFullScreen,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
onUserAvatarTap: widget.onUserAvatarTap,
|
||||
onMessageActions: widget.onMessageActions,
|
||||
attachmentBuilders: widget.attachmentBuilders,
|
||||
);
|
||||
@@ -314,6 +320,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
showVideoFullScreen: widget.showVideoFullScreen,
|
||||
showOtherMessageUsername: widget.showOtherMessageUsername,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
onUserAvatarTap: widget.onUserAvatarTap,
|
||||
onMessageActions: widget.onMessageActions,
|
||||
attachmentBuilders: widget.attachmentBuilders,
|
||||
);
|
||||
@@ -354,6 +361,7 @@ class _MessageListViewState extends State<MessageListView> {
|
||||
showVideoFullScreen: widget.showVideoFullScreen,
|
||||
showOtherMessageUsername: widget.showOtherMessageUsername,
|
||||
onMentionTap: widget.onMentionTap,
|
||||
onUserAvatarTap: widget.onUserAvatarTap,
|
||||
onMessageActions: widget.onMessageActions,
|
||||
attachmentBuilders: widget.attachmentBuilders,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user