feat: Added message flagging

This commit is contained in:
Deven Joshi
2021-01-08 22:00:54 +05:30
parent 26f30f06d0
commit b93d616c86
3 changed files with 239 additions and 50 deletions
+3
View File
@@ -133,6 +133,7 @@ class MessageWidget extends StatefulWidget {
final bool showTimestamp;
final bool showDeleteMessage;
final bool showEditMessage;
final bool showFlagButton;
final Map<String, AttachmentBuilder> attachmentBuilders;
/// Center user avatar with bottom of the message
@@ -168,6 +169,7 @@ class MessageWidget extends StatefulWidget {
this.showReactions = true,
this.showDeleteMessage = true,
this.showEditMessage = true,
this.showFlagButton = true,
this.onUserAvatarTap,
this.onLinkTap,
this.onMessageActions,
@@ -718,6 +720,7 @@ class _MessageWidgetState extends State<MessageWidget> {
widget.onReplyTap != null,
showThreadReply:
widget.showThreadReplyIndicator && widget.onThreadTap != null,
showFlagButton: widget.showFlagButton,
),
);
});