Skip to content

Commit

Permalink
Fixed block peer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed Jan 11, 2024
1 parent a10a675 commit 4b4e6bf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,17 @@ class _ChatBottomSheetState extends State<ChatBottomSheet> {

///If there are no chats and no pinned messages
(data.item2 == 0 && data.item3.isEmpty)
? const Expanded(
child: Center(child: HMSEmptyChatWidget()))
? Expanded(
child: SingleChildScrollView(
physics: const NeverScrollableScrollPhysics(),
child: ConstrainedBox(
constraints: BoxConstraints(
minHeight:
MediaQuery.of(context)
.size
.height * 0.6,
),
child: const HMSEmptyChatWidget())))
: Expanded(
child: Column(children: [
PinChatWidget(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class _PinChatWidgetState extends State<PinChatWidget> {
(isExpanded ? 0.13 : 0.09),
width:
(HMSRoomLayout.chatData?.allowPinningMessages ?? false)
? MediaQuery.of(context).size.width * 0.85
? MediaQuery.of(context).size.width * 0.83
: MediaQuery.of(context).size.width * 0.9,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ class _ChatParticipantsTabBarState extends State<ChatParticipantsTabBar>
],
),
SizedBox(
height: MediaQuery.of(context).size.height * 0.78,
height: MediaQuery.of(context).size.height * 0.76,
child: TabBarView(controller: _controller, children: const [
ChatBottomSheet(),
ParticipantsBottomSheet()
Expand Down

0 comments on commit 4b4e6bf

Please sign in to comment.