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(