From bc6c31c25e497fdd72e5d37143fd5ba50e4cbf3b Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 6 Jan 2021 13:54:50 +0530 Subject: [PATCH] [GroupChatDetailsScreen] Fix divider color Signed-off-by: Sahil Kumar --- example/lib/group_chat_details_screen.dart | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/example/lib/group_chat_details_screen.dart b/example/lib/group_chat_details_screen.dart index 03b4877b..b1fd58c2 100644 --- a/example/lib/group_chat_details_screen.dart +++ b/example/lib/group_chat_details_screen.dart @@ -185,29 +185,14 @@ class _GroupChatDetailsScreenState extends State { itemCount: _selectedUsers.length + 1, separatorBuilder: (_, __) => Container( height: 1, - color: Theme.of(context).brightness == Brightness.dark - ? StreamChatTheme.of(context) - .colorTheme - .white - .withOpacity(0.1) - : StreamChatTheme.of(context) - .colorTheme - .black - .withOpacity(0.1), + color: StreamChatTheme.of(context).colorTheme.greyWhisper, ), itemBuilder: (_, index) { if (index == _selectedUsers.length) { return Container( height: 1, - color: Theme.of(context).brightness == Brightness.dark - ? StreamChatTheme.of(context) - .colorTheme - .white - .withOpacity(0.1) - : StreamChatTheme.of(context) - .colorTheme - .black - .withOpacity(0.1), + color: + StreamChatTheme.of(context).colorTheme.greyWhisper, ); } final user = _selectedUsers[index];