From 7b2cde37e537f619601a2d68680e2ecd20fd2209 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 6 Jan 2021 16:35:55 +0530 Subject: [PATCH] [NewChatScreen] Fix chip clear icon color Signed-off-by: Sahil Kumar --- example/lib/new_chat_screen.dart | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/example/lib/new_chat_screen.dart b/example/lib/new_chat_screen.dart index c0be5ed3..1de36b46 100644 --- a/example/lib/new_chat_screen.dart +++ b/example/lib/new_chat_screen.dart @@ -157,8 +157,7 @@ class _NewChatScreenState extends State { decoration: BoxDecoration( color: StreamChatTheme.of(context) .colorTheme - .black - .withOpacity(0.05), + .greyGainsboro, borderRadius: BorderRadius.circular(12), ), padding: const EdgeInsets.only(left: 24), @@ -166,15 +165,19 @@ class _NewChatScreenState extends State { padding: const EdgeInsets.fromLTRB(8, 4, 12, 4), child: Text( user.name, + maxLines: 1, style: TextStyle( - color: StreamChatTheme.of(context) - .colorTheme - .black), + color: + StreamChatTheme.of(context).colorTheme.black, + ), ), ), ), - Opacity( - opacity: .8, + Container( + foregroundDecoration: BoxDecoration( + color: StreamChatTheme.of(context).colorTheme.overlay, + shape: BoxShape.circle, + ), child: UserAvatar( showOnlineStatus: false, user: user, @@ -184,11 +187,7 @@ class _NewChatScreenState extends State { ), ), ), - Positioned( - child: StreamSvgIcon.close( - color: StreamChatTheme.of(context).colorTheme.white, - ), - ), + StreamSvgIcon.close(), ], ), );