From 6ce67a72699b11544f35399dd78aff4ee4eabe82 Mon Sep 17 00:00:00 2001 From: Sahil Kumar Date: Wed, 7 Jun 2023 18:16:46 +0530 Subject: [PATCH] fix(ui): fix channelInfoBottomSheet members rendering. Signed-off-by: xsahil03x --- .../bottom_sheets/stream_channel_info_bottom_sheet.dart | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/stream_chat_flutter/lib/src/bottom_sheets/stream_channel_info_bottom_sheet.dart b/packages/stream_chat_flutter/lib/src/bottom_sheets/stream_channel_info_bottom_sheet.dart index 6f5b32a8..ea25f7bc 100644 --- a/packages/stream_chat_flutter/lib/src/bottom_sheets/stream_channel_info_bottom_sheet.dart +++ b/packages/stream_chat_flutter/lib/src/bottom_sheets/stream_channel_info_bottom_sheet.dart @@ -91,12 +91,14 @@ class StreamChannelInfoBottomSheet extends StatelessWidget { final member = members[index]; final user = member.user!; return Column( + mainAxisSize: MainAxisSize.min, + mainAxisAlignment: MainAxisAlignment.center, children: [ StreamUserAvatar( user: user, - constraints: const BoxConstraints( - maxHeight: 64, - maxWidth: 64, + constraints: const BoxConstraints.tightFor( + height: 64, + width: 64, ), borderRadius: BorderRadius.circular(32), onlineIndicatorConstraints: BoxConstraints.tight(