open sidebar on homepage pop
This commit is contained in:
parent
81851bdc42
commit
a3a3781252
1 changed files with 35 additions and 29 deletions
|
|
@ -39,7 +39,12 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
|
|||
final showMembersByDefault = constraints.maxWidth > 1000;
|
||||
final roomId = ref.watch(SelectedRoomController.provider);
|
||||
|
||||
return SafeArea(
|
||||
return PopScope(
|
||||
canPop: false,
|
||||
onPopInvokedWithResult: (didPop, _) {
|
||||
if (!didPop) scaffoldKey.currentState?.openDrawer();
|
||||
},
|
||||
child: SafeArea(
|
||||
child: Scaffold(
|
||||
key: scaffoldKey,
|
||||
appBar: initComplete ? null : Appbar(),
|
||||
|
|
@ -72,6 +77,7 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
|
|||
),
|
||||
drawer: isDesktop || !initComplete ? null : Sidebar(),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue