small fixups
This commit is contained in:
parent
bab699658f
commit
e300f4efc9
4 changed files with 21 additions and 17 deletions
|
|
@ -192,13 +192,14 @@ class const Sidebar({required final bool isDesktop, super.key})
|
|||
),
|
||||
IconButton(
|
||||
tooltip: "Open notifications",
|
||||
onPressed: () => Navigator.of(context)
|
||||
..pop()
|
||||
..push(
|
||||
onPressed: () {
|
||||
if (!isDesktop) Navigator.of(context).pop();
|
||||
Navigator.of(context).push(
|
||||
MaterialPageRoute(
|
||||
builder: (_) => NotificationsPage(),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
icon: Icon(Icons.notifications),
|
||||
),
|
||||
IconButton(
|
||||
|
|
|
|||
Loading…
Reference in a new issue