[UserItem] Fix selected check icon
Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
@@ -194,6 +194,18 @@ class StreamSvgIcon extends StatelessWidget {
|
||||
);
|
||||
}
|
||||
|
||||
factory StreamSvgIcon.checkSend({
|
||||
double size,
|
||||
Color color,
|
||||
}) {
|
||||
return StreamSvgIcon(
|
||||
assetName: 'Icon_check_send.svg',
|
||||
color: color,
|
||||
width: size,
|
||||
height: size,
|
||||
);
|
||||
}
|
||||
|
||||
factory StreamSvgIcon.penWrite({
|
||||
double size,
|
||||
Color color,
|
||||
|
||||
@@ -73,14 +73,8 @@ class UserItem extends StatelessWidget {
|
||||
),
|
||||
),
|
||||
trailing: selected
|
||||
? CircleAvatar(
|
||||
backgroundColor:
|
||||
StreamChatTheme.of(context).colorTheme.accentBlue,
|
||||
child: StreamSvgIcon.check(
|
||||
size: 20,
|
||||
color: StreamChatTheme.of(context).colorTheme.white,
|
||||
),
|
||||
radius: 10,
|
||||
? StreamSvgIcon.checkSend(
|
||||
color: StreamChatTheme.of(context).colorTheme.accentBlue,
|
||||
)
|
||||
: null,
|
||||
title: Text(
|
||||
|
||||
Reference in New Issue
Block a user