Closed equipmentseek closed 4 years ago
lib/views/login_page/effect.dart:105:36: Error: Getter not found: 'signInOption'. GoogleSignIn(signInOption: signInOption.standard); ^^^^^^^^^^^^ Compiler failed on /Users/liuchao/Documents/GitHub/Flutter-Movie/lib/main.dart
FAILURE: Build failed with an exception.
void _onGoogleSignIn(Action action, Context ctx) async { ctx.state.submitAnimationController.forward(); try { GoogleSignIn _googleSignIn = GoogleSignIn(signInOption: signInOption.standard); final GoogleSignInAccount googleUser = await _googleSignIn.signIn(); final GoogleSignInAuthentication googleAuth = await googleUser.authentication; final AuthCredential credential = GoogleAuthProvider.getCredential( accessToken: googleAuth.accessToken, idToken: googleAuth.idToken, );
GoogleSignIn _googleSignIn = GoogleSignIn(signInOption: SignInOption.standard); remove signInOption: SignInOption.standard, it will be fine.
GoogleSignIn _googleSignIn = GoogleSignIn(signInOption: SignInOption.standard);
This issue has been fixed
good thanks
lib/views/login_page/effect.dart:105:36: Error: Getter not found: 'signInOption'. GoogleSignIn(signInOption: signInOption.standard); ^^^^^^^^^^^^ Compiler failed on /Users/liuchao/Documents/GitHub/Flutter-Movie/lib/main.dart
FAILURE: Build failed with an exception.
void _onGoogleSignIn(Action action, Context ctx) async {
ctx.state.submitAnimationController.forward();
try {
GoogleSignIn _googleSignIn =
GoogleSignIn(signInOption: signInOption.standard);
final GoogleSignInAccount googleUser = await _googleSignIn.signIn();
final GoogleSignInAuthentication googleAuth =
await googleUser.authentication;
final AuthCredential credential = GoogleAuthProvider.getCredential(
accessToken: googleAuth.accessToken,
idToken: googleAuth.idToken,
);