title: Flutter Firebase signout
body: <p>I am trying to return the user to the login page once they sign out from the app but goodness,nothing is working. I am getting exceptions like <code>Bad state: Future already completed</code> or the app returns to the login screen but the previous screen still exists in the stack when I hit back.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>_logOut() async{
      await _auth.signOut().then((value){
        print("***** log out");
        //Navigator.pop(context);
        //Navigator.popUntil(context, ModalRoute.withName("/login"));
        Navigator.pushReplacement(context, new MaterialPageRoute(builder: (context)=&gt;new MyApp()));
      });
     // Navigator.popUntil(context, ModalRoute.withName("/login"));
    }
  </code></pre>