From bab699658ff91b7d4e513a920d52a14cfcd409e7 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 26 Sep 2026 20:32:44 -0400 Subject: [PATCH] pop sidebar before pushing notif page --- lib/widgets/sidebar.dart | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/widgets/sidebar.dart b/lib/widgets/sidebar.dart index 6689ce2..8c4328c 100644 --- a/lib/widgets/sidebar.dart +++ b/lib/widgets/sidebar.dart @@ -192,11 +192,13 @@ class const Sidebar({required final bool isDesktop, super.key}) ), IconButton( tooltip: "Open notifications", - onPressed: () => Navigator.of(context).push( - MaterialPageRoute( - builder: (_) => NotificationsPage(), + onPressed: () => Navigator.of(context) + ..pop() + ..push( + MaterialPageRoute( + builder: (_) => NotificationsPage(), + ), ), - ), icon: Icon(Icons.notifications), ), IconButton(