title: authentification Firebase with Provider flutter
body: <p>I tried to implements this Authentification <a href="https://stackoverflow.com/questions/61931976/how-to-manage-firebase-authentication-state-in-flutter/61995978#61995978">here</a> Firebase with Porvider here the issue is I want to save the state of variable loggedIn even I close and reponning the app so I used this code but dont work</p>
  
  <pre><code>    class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
      return Consumer&lt;AuthenticationService&gt;(builder: (_, auth, __) {
        if (auth.getCurrentUser() != null)
          return HomeView();
        else
          return TermsView();
      });
    }
  }
  </code></pre>
  
  <p>here method to get current user</p>
  
  <pre><code>Future getCurrentUser() async {
  FirebaseUser _user ;
  _user = await FirebaseAuth.instance.currentUser();
  
  return _user ;
  }
  </code></pre>
  
  <p>Is there a way to check signing in inside <code>Consumer</code>?</p>