pop sidebar before pushing notif page

This commit is contained in:
Henry Hiles 2026-09-26 20:32:44 -04:00
commit bab699658f
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -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(