feat: Added end dialog and animations

This commit is contained in:
Deven Joshi
2021-01-11 14:37:53 +05:30
parent b93d616c86
commit bd73a8b6db
2 changed files with 309 additions and 146 deletions
+4 -1
View File
@@ -686,6 +686,9 @@ class _MessageWidgetState extends State<MessageWidget> {
void _showMessageActionModalBottomSheet(BuildContext context) {
final channel = StreamChannel.of(context).channel;
final isMyMessage =
widget.message.user.id == StreamChat.of(context).user.id;
showDialog(
context: context,
barrierColor: StreamChatTheme.of(context).colorTheme.overlay,
@@ -720,7 +723,7 @@ class _MessageWidgetState extends State<MessageWidget> {
widget.onReplyTap != null,
showThreadReply:
widget.showThreadReplyIndicator && widget.onThreadTap != null,
showFlagButton: widget.showFlagButton,
showFlagButton: widget.showFlagButton && !isMyMessage,
),
);
});