title: StreamBuilder is not able to re-route even though condition is true
body: <p>I am building Flutter authentication app using firebase. Upon successful login, StreamBuilder gets new data but not redirecting to desired component, instead it stays on login page. Here is the code snippet:</p>
  <pre><code>StreamBuilder&lt;UserModel&gt;(
            stream: _authService.user,
            builder: (BuildContext context, snapshot) {
              if (snapshot.hasData) {
                return DashboardScreen(snapshot.data);
              }
              return HomeScreen();
              // return snapshot.hasData
              //     ? DashboardScreen(snapshot.data)
              //     : HomeScreen();
            },
          )
  </code></pre>
  <p>The only thing You should know that from HomeScreen user can choose Login or Register option. That will open up new screen(AuthScreen) and on that screen I've Login/Register form. after successful login/Register, it stays on the same page even though snapshot.hasData is true. Is that an issue? Is flutter not able to figure out previous route? I really appreciate some help here.</p>