Flutter FirebaseFirestore Google SignOut
pubspec.yaml add google_sign_in:
& firebase_auth
I use version google_sign_in: ^5.0.4 & firebase_auth: ^1.4.1
ex) home.dart
import 'package:firebase_auth/firebase_auth.dart';
import 'package:google_sign_in/google_sign_in.dart';
final GoogleSignIn _googleSignIn = GoogleSignIn();
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
actions: <Widget>[
IconButton(
icon: Icon(Icons.exit_to_app),
color: Colors.black,
onPressed: () {
// 로그아웃
FirebaseAuth.instance.signOut();
_googleSignIn.signOut();
},
)
],
),
End
⊙^⊙ Thank For Reading | Happy Coding ⊙-⊙
The referrer gets a free month, up to a maximum of six months, for each friend who creates an account and signs in on their Mac.