From 7a0c10b1782df0ac3d83c5700961081d4c1251a5 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Tue, 8 Oct 2024 10:21:44 +0000 Subject: [PATCH] Fix scrolling on room list for mobile (#362) --- .../ui/pages/main/main_page_view_mobile.dart | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/commet/lib/ui/pages/main/main_page_view_mobile.dart b/commet/lib/ui/pages/main/main_page_view_mobile.dart index 17102ccc..887642e3 100644 --- a/commet/lib/ui/pages/main/main_page_view_mobile.dart +++ b/commet/lib/ui/pages/main/main_page_view_mobile.dart @@ -319,16 +319,19 @@ class _MainPageViewMobileState extends State { onTap: clearSelectedRoom, ), Expanded( - child: SpaceViewer( - widget.state.currentSpace!, - key: ValueKey( - "space-view-key-${widget.state.currentSpace!.localId}"), - onChildAdded: widget.state.clientManager.onSpaceAdded, - onChildRemoved: widget.state.clientManager.onSpaceRemoved, - onChildUpdated: widget.state.clientManager.onSpaceUpdated.stream, - onRoomSelected: (room) async { - selectRoom(room); - }, + child: SingleChildScrollView( + child: SpaceViewer( + widget.state.currentSpace!, + key: ValueKey( + "space-view-key-${widget.state.currentSpace!.localId}"), + onChildAdded: widget.state.clientManager.onSpaceAdded, + onChildRemoved: widget.state.clientManager.onSpaceRemoved, + onChildUpdated: + widget.state.clientManager.onSpaceUpdated.stream, + onRoomSelected: (room) async { + selectRoom(room); + }, + ), )), ], ),