o1298098 / Flutter-Movie

😎 🎬 A Flutter movie app build with Fish-Redux and The Movie DB api.
Apache License 2.0
724 stars 218 forks source link

Undefined name 'signInOption'. Try correcting the name to one that is defined, or defining the name.dart(undefined_identifier) #11

Closed equipmentseek closed 4 years ago

equipmentseek commented 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, );

o1298098 commented 4 years ago

GoogleSignIn _googleSignIn = GoogleSignIn(signInOption: SignInOption.standard); remove signInOption: SignInOption.standard, it will be fine.

o1298098 commented 4 years ago

This issue has been fixed

equipmentseek commented 4 years ago

good thanks