[NewChatScreen] Fix chip clear icon color

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-01-06 16:35:55 +05:30
parent 0d71632ef2
commit 7b2cde37e5
+11 -12
View File
@@ -157,8 +157,7 @@ class _NewChatScreenState extends State<NewChatScreen> {
decoration: BoxDecoration( decoration: BoxDecoration(
color: StreamChatTheme.of(context) color: StreamChatTheme.of(context)
.colorTheme .colorTheme
.black .greyGainsboro,
.withOpacity(0.05),
borderRadius: BorderRadius.circular(12), borderRadius: BorderRadius.circular(12),
), ),
padding: const EdgeInsets.only(left: 24), padding: const EdgeInsets.only(left: 24),
@@ -166,15 +165,19 @@ class _NewChatScreenState extends State<NewChatScreen> {
padding: const EdgeInsets.fromLTRB(8, 4, 12, 4), padding: const EdgeInsets.fromLTRB(8, 4, 12, 4),
child: Text( child: Text(
user.name, user.name,
maxLines: 1,
style: TextStyle( style: TextStyle(
color: StreamChatTheme.of(context) color:
.colorTheme StreamChatTheme.of(context).colorTheme.black,
.black), ),
), ),
), ),
), ),
Opacity( Container(
opacity: .8, foregroundDecoration: BoxDecoration(
color: StreamChatTheme.of(context).colorTheme.overlay,
shape: BoxShape.circle,
),
child: UserAvatar( child: UserAvatar(
showOnlineStatus: false, showOnlineStatus: false,
user: user, user: user,
@@ -184,11 +187,7 @@ class _NewChatScreenState extends State<NewChatScreen> {
), ),
), ),
), ),
Positioned( StreamSvgIcon.close(),
child: StreamSvgIcon.close(
color: StreamChatTheme.of(context).colorTheme.white,
),
),
], ],
), ),
); );