From 150e51ac62ccfb260b37786a1dcdd9d0c019b5cf Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 13 Jan 2021 18:37:54 +0530 Subject: [PATCH] [UserAvatar] Fix online status indicator size Signed-off-by: Sahil Kumar --- lib/src/channel_bottom_sheet.dart | 4 +++- lib/src/user_avatar.dart | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib/src/channel_bottom_sheet.dart b/lib/src/channel_bottom_sheet.dart index d03f233c..6b3e4658 100644 --- a/lib/src/channel_bottom_sheet.dart +++ b/lib/src/channel_bottom_sheet.dart @@ -74,7 +74,7 @@ class _ChannelBottomSheetState extends State { ), borderRadius: BorderRadius.circular(32.0), onlineIndicatorConstraints: - BoxConstraints.tight(Size(16.0, 16.0)), + BoxConstraints.tight(Size(12.0, 12.0)), ), SizedBox( height: 6.0, @@ -110,6 +110,8 @@ class _ChannelBottomSheetState extends State { maxWidth: 64.0, ), borderRadius: BorderRadius.circular(32.0), + onlineIndicatorConstraints: + BoxConstraints.tight(Size(12.0, 12.0)), ), SizedBox( height: 6.0, diff --git a/lib/src/user_avatar.dart b/lib/src/user_avatar.dart index 688eff77..706c4d7e 100644 --- a/lib/src/user_avatar.dart +++ b/lib/src/user_avatar.dart @@ -92,18 +92,18 @@ class UserAvatar extends StatelessWidget { child: Material( type: MaterialType.circle, child: Container( - padding: const EdgeInsets.all(2.0), + margin: const EdgeInsets.all(2.0), constraints: onlineIndicatorConstraints ?? BoxConstraints.tightFor( - width: 12, - height: 12, + width: 8, + height: 8, ), child: Material( shape: CircleBorder(), color: streamChatTheme.colorTheme.accentGreen, ), ), - color: StreamChatTheme.of(context).colorTheme.white, + color: streamChatTheme.colorTheme.white, ), ), ),