sign With Popup firebase anonym provider code example
Example 1: how to enable sign-in provider in firebase console
Enable Google Sign-In in the Firebase console:
1. In the Firebase console, open the Auth section.
2. On the Sign in method tab, enable the Google sign-in method and click Save.
Example 2: firebase sign out
Future<Null> _signOut() async {
await _auth.signOut();
this.setState(() {
isLoading = false;
});
Navigator.of(context).pushAndRemoveUntil(
MaterialPageRoute(builder: (context) => MyApp()),
(Route<dynamic> route) => false);
}