From 0b69d41328e40cfc42382ae73ffcd60cd22d0fc3 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 25 Feb 2021 14:18:08 +0530 Subject: [PATCH 1/3] fix: channel header text style --- packages/stream_chat_flutter/lib/src/stream_chat_theme.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart index c2f3ee7e..29988a86 100644 --- a/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart +++ b/packages/stream_chat_flutter/lib/src/stream_chat_theme.dart @@ -195,10 +195,7 @@ class StreamChatThemeData { ), ), color: colorTheme.white, - title: TextStyle( - fontSize: 14, - color: colorTheme.black, - ), + title: textTheme.headlineBold, lastMessageAt: TextStyle( fontSize: 11, color: colorTheme.black.withOpacity(.5), From 492727754c86bffb64568ce60bacba1847046983 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 25 Feb 2021 14:47:04 +0530 Subject: [PATCH 2/3] fix: Delete now deletes a single image --- .../stream_chat_flutter/lib/src/image_actions_modal.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/image_actions_modal.dart b/packages/stream_chat_flutter/lib/src/image_actions_modal.dart index 3c4a7c73..ec9abd93 100644 --- a/packages/stream_chat_flutter/lib/src/image_actions_modal.dart +++ b/packages/stream_chat_flutter/lib/src/image_actions_modal.dart @@ -103,11 +103,11 @@ class ImageActionsModal extends StatelessWidget { color: StreamChatTheme.of(context).colorTheme.accentRed, ), () { + var channel = StreamChannel.of(context).channel; + channel.updateMessage( + message..attachments.removeAt(currentIndex)); Navigator.pop(context); Navigator.pop(context); - StreamChannel.of(context) - .channel - .deleteMessage(message); }, color: StreamChatTheme.of(context).colorTheme.accentRed, ), From feb0eb151e91c3f8347d430e9f49113b5b0bb5e3 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Fri, 26 Feb 2021 13:14:48 +0530 Subject: [PATCH 3/3] fix: Rolled back changes from other PR --- .../stream_chat_flutter/lib/src/image_actions_modal.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/image_actions_modal.dart b/packages/stream_chat_flutter/lib/src/image_actions_modal.dart index ec9abd93..3c4a7c73 100644 --- a/packages/stream_chat_flutter/lib/src/image_actions_modal.dart +++ b/packages/stream_chat_flutter/lib/src/image_actions_modal.dart @@ -103,11 +103,11 @@ class ImageActionsModal extends StatelessWidget { color: StreamChatTheme.of(context).colorTheme.accentRed, ), () { - var channel = StreamChannel.of(context).channel; - channel.updateMessage( - message..attachments.removeAt(currentIndex)); Navigator.pop(context); Navigator.pop(context); + StreamChannel.of(context) + .channel + .deleteMessage(message); }, color: StreamChatTheme.of(context).colorTheme.accentRed, ),