pop sidebar before pushing notif page
This commit is contained in:
parent
1c1f585362
commit
bab699658f
1 changed files with 6 additions and 4 deletions
|
|
@ -192,7 +192,9 @@ class const Sidebar({required final bool isDesktop, super.key})
|
|||
),
|
||||
IconButton(
|
||||
tooltip: "Open notifications",
|
||||
onPressed: () => Navigator.of(context).push(
|
||||
onPressed: () => Navigator.of(context)
|
||||
..pop()
|
||||
..push(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => NotificationsPage(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Reference in a new issue