refactor: Replace Navigator.pop with Modular.to.popSafe for consistent navigation handling

This commit is contained in:
Achintha Isuru
2026-03-04 13:08:39 -05:00
parent b20039ae84
commit 867ff8d61c
9 changed files with 23 additions and 16 deletions

View File

@@ -104,7 +104,7 @@ class _SessionListenerState extends State<SessionListener> {
actions: <Widget>[
TextButton(
onPressed: () {
Navigator.of(context).pop();
Modular.to.popSafe();
_proceedToLogin();
},
child: const Text('Log In'),
@@ -134,7 +134,7 @@ class _SessionListenerState extends State<SessionListener> {
),
TextButton(
onPressed: () {
Navigator.of(context).pop();
Modular.to.popSafe();;
_proceedToLogin();
},
child: const Text('Log Out'),