😉
【Flutter】GoogleSignIn デバッグモードでクラッシュする
GoogleSignInを搭載したFluuterアプリにて、GoogleSignIn後にアプリを動かすとクラッシュする。
throw FlutterError.fromPartsと表示される。
その対策法は・・・
bool _debugCheckStateIsActiveForAncestorLookup() {
assert(() {
if (_lifecycleState != _ElementLifecycle.active) {
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary("Looking up a deactivated widget's ancestor is unsafe."),
ErrorDescription(
"At this point the state of the widget's element tree is no longer "
'stable.',
結論
flutter run
でデバッグするとクラッシュしなくなる。
Discussion