Skip to content

Commit

Permalink
Fix scrolling on room list for mobile (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
Airyzz authored Oct 8, 2024
1 parent c3cd140 commit 7a0c10b
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions commet/lib/ui/pages/main/main_page_view_mobile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,16 +319,19 @@ class _MainPageViewMobileState extends State<MainPageViewMobile> {
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);
},
),
)),
],
),
Expand Down

0 comments on commit 7a0c10b

Please sign in to comment.