gate pop behind canPop

This commit is contained in:
Henry Hiles 2026-09-28 09:49:20 -04:00
commit d37538b69f
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 7 additions and 8 deletions

View file

@ -25,7 +25,7 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
body: initComplete
? Row(
children: [
if (isDesktop) Sidebar(isDesktop: isDesktop),
if (isDesktop) Sidebar(),
Expanded(
child: Consumer(
builder: (context, ref, _) {
@ -50,9 +50,7 @@ class const ChatPage({super.key}) extends HookConsumerWidget {
children: [Loading(), Text("Syncing...")],
),
),
drawer: isDesktop || !initComplete
? null
: Sidebar(isDesktop: isDesktop),
drawer: isDesktop || !initComplete ? null : Sidebar(),
),
);
},