diff options
Diffstat (limited to 'lib/screens/dashboard_screen.dart')
-rw-r--r-- | lib/screens/dashboard_screen.dart | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/screens/dashboard_screen.dart b/lib/screens/dashboard_screen.dart index 778c2bb..88bd8e7 100644 --- a/lib/screens/dashboard_screen.dart +++ b/lib/screens/dashboard_screen.dart @@ -93,10 +93,15 @@ class _DashboardScreenState extends State<DashboardScreen> { } void signOut(BuildContext context) { - _auth.signOut().then((success) { + /*_auth.signOut().then((success) { if (success) { Navigator.of(context).popUntil(ModalRoute.withName('/login')); } + });*/ + _auth.signOut().then((success) { + if (success) { + Navigator.of(context).pushReplacementNamed('/login'); + } }); } } |