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,11 +192,13 @@ class const Sidebar({required final bool isDesktop, super.key})
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
tooltip: "Open notifications",
|
tooltip: "Open notifications",
|
||||||
onPressed: () => Navigator.of(context).push(
|
onPressed: () => Navigator.of(context)
|
||||||
MaterialPageRoute(
|
..pop()
|
||||||
builder: (_) => NotificationsPage(),
|
..push(
|
||||||
|
MaterialPageRoute(
|
||||||
|
builder: (_) => NotificationsPage(),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
icon: Icon(Icons.notifications),
|
icon: Icon(Icons.notifications),
|
||||||
),
|
),
|
||||||
IconButton(
|
IconButton(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue