fix unread indicator
This commit is contained in:
@@ -12,12 +12,17 @@ class UnreadIndicator extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Padding(
|
return Material(
|
||||||
padding: const EdgeInsets.only(left: 8.0),
|
borderRadius: BorderRadius.circular(8),
|
||||||
child: CircleAvatar(
|
color: StreamChatTheme.of(context).channelPreviewTheme.unreadCounterColor,
|
||||||
backgroundColor:
|
child: Padding(
|
||||||
StreamChatTheme.of(context).channelPreviewTheme.unreadCounterColor,
|
padding: const EdgeInsets.only(
|
||||||
radius: 8,
|
left: 5.0,
|
||||||
|
right: 5.0,
|
||||||
|
top: 2,
|
||||||
|
bottom: 1,
|
||||||
|
),
|
||||||
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
'${channel.state.unreadCount}',
|
'${channel.state.unreadCount}',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -26,6 +31,7 @@ class UnreadIndicator extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user