fix unread indicator
This commit is contained in:
@@ -12,17 +12,23 @@ 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,
|
||||||
child: Text(
|
right: 5.0,
|
||||||
'${channel.state.unreadCount}',
|
top: 2,
|
||||||
style: TextStyle(
|
bottom: 1,
|
||||||
fontSize: 11,
|
),
|
||||||
color: Colors.white,
|
child: Center(
|
||||||
|
child: Text(
|
||||||
|
'${channel.state.unreadCount}',
|
||||||
|
style: TextStyle(
|
||||||
|
fontSize: 11,
|
||||||
|
color: Colors.white,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user