From 7c8d5a643f7ef41c0b62efeb5d9c9271256aa631 Mon Sep 17 00:00:00 2001 From: Deven Joshi Date: Thu, 31 Dec 2020 20:27:51 +0530 Subject: [PATCH] feat: fixed overflow --- lib/src/channel_bottom_sheet.dart | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/src/channel_bottom_sheet.dart b/lib/src/channel_bottom_sheet.dart index 130738d8..d2c7eb04 100644 --- a/lib/src/channel_bottom_sheet.dart +++ b/lib/src/channel_bottom_sheet.dart @@ -33,25 +33,29 @@ class _ChannelBottomSheetState extends State { topRight: Radius.circular(16.0), ), ), - child: Column( - mainAxisSize: MainAxisSize.min, + child: ListView( children: [ SizedBox( height: 24.0, ), - Padding( - padding: const EdgeInsets.symmetric(horizontal: 16.0), - child: ChannelName( - textStyle: StreamChatTheme.of(context).textTheme.headlineBold, + Center( + child: Padding( + padding: const EdgeInsets.symmetric(horizontal: 16.0), + child: ChannelName( + textStyle: StreamChatTheme.of(context).textTheme.headlineBold, + ), ), ), SizedBox( height: 5.0, ), - ChannelInfo( - showTypingIndicator: false, - channel: StreamChannel.of(context).channel, - textStyle: StreamChatTheme.of(context).channelPreviewTheme.subtitle, + Center( + child: ChannelInfo( + showTypingIndicator: false, + channel: StreamChannel.of(context).channel, + textStyle: + StreamChatTheme.of(context).channelPreviewTheme.subtitle, + ), ), SizedBox( height: 17.0,