feat: add 'All accounts' entry to FolderDrawer for back-navigation
Users had no obvious way to return to the account list after opening an account. Adding an 'All accounts' tile at the top of the drawer (visible in both MailboxListScreen and EmailListScreen) lets users navigate to /accounts from anywhere inside an account. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
9c74dec866
commit
0103454e31
@@ -6,6 +6,13 @@ Tasks get moved from next.md to done.md
|
||||
|
||||
## Tasks
|
||||
|
||||
## Navigate back to account list from inside an account
|
||||
|
||||
Added an "All accounts" tile (with `Icons.switch_account`) at the top of `FolderDrawer`,
|
||||
above a divider and the folder list. Tapping it closes the drawer and navigates to
|
||||
`/accounts` via `context.go`. The drawer is shown in both `MailboxListScreen` and
|
||||
`EmailListScreen`, so this entry point is reachable from anywhere inside an account.
|
||||
|
||||
## Speed up `task deploy-android`
|
||||
|
||||
Two parallelism improvements:
|
||||
|
||||
@@ -74,6 +74,15 @@ class FolderDrawer extends ConsumerWidget {
|
||||
),
|
||||
),
|
||||
),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.switch_account),
|
||||
title: const Text('All accounts'),
|
||||
onTap: () {
|
||||
Navigator.pop(context);
|
||||
context.go('/accounts');
|
||||
},
|
||||
),
|
||||
const Divider(height: 1),
|
||||
Expanded(
|
||||
child: StreamBuilder(
|
||||
stream: mailboxRepo.observeMailboxes(accountId),
|
||||
|
||||
Reference in New Issue
Block a user