[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({
|
factory StreamSvgIcon.penWrite({
|
||||||
double size,
|
double size,
|
||||||
Color color,
|
Color color,
|
||||||
|
|||||||
@@ -73,14 +73,8 @@ class UserItem extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
trailing: selected
|
trailing: selected
|
||||||
? CircleAvatar(
|
? StreamSvgIcon.checkSend(
|
||||||
backgroundColor:
|
color: StreamChatTheme.of(context).colorTheme.accentBlue,
|
||||||
StreamChatTheme.of(context).colorTheme.accentBlue,
|
|
||||||
child: StreamSvgIcon.check(
|
|
||||||
size: 20,
|
|
||||||
color: StreamChatTheme.of(context).colorTheme.white,
|
|
||||||
),
|
|
||||||
radius: 10,
|
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
title: Text(
|
title: Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user