ir0nstone / Twooter

A simple implementation of an app like Twitter, created to teach myself how to use Firebase and how to integrate it with Flutter.
0 stars 0 forks source link

Navigation is wrong on Login #13

Closed ir0nstone closed 2 years ago

ir0nstone commented 2 years ago

When we attempt to log in, the Navigator isn't successfully pushed - the Appbar still has a "back" button which takes us to the main page, despite the fact we are logged in.

This doesn't happen if we load the app while logged in, confusingly, so there must be a different between how we load it automatically and how we handle navigation post-login.

ir0nstone commented 2 years ago

pushReplacement doesn't do what I expect it to https://stackoverflow.com/questions/54801746/pushreplacement-showing-back-arrow-flutter

ir0nstone commented 2 years ago

Explained well here: What is the difference between Navigator.pushReplacement and Navigator.pushAndRemoveUntil in flutter?