I/flutter ( 5116): PlatformException(no_fragment_activity, local_auth plugin requires activity to be a FragmentActivity., null, null) E/flutter ( 5116): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Looking up a deactivated widget’s ancestor is unsafe. E/flutter ( 5116): At this point the state of the widget’s element tree is no longer stable. E/flutter ( 5116): To safely refer to a widget’s ancestor in its dispose() method, save a reference to the ancestor by calling dependOnInheritedWidgetOfExactType() in the widget’s didChangeDependencies() method. E/flutter ( 5116): #0 Element._debugCheckStateIsActiveForAncestorLookup. (package:flutter/src/widgets/framework.dart:4334:9) E/flutter ( 5116): #1 Element._debugCheckStateIsActiveForAncestorLookup (package:flutter/src/widgets/framework.dart:4348:6) E/flutter ( 5116): #2 Element.findAncestorWidgetOfExactType (package:flutter/src/widgets/framework.dart:4405:12) E/flutter ( 5116): #3 debugCheckHasScaffoldMessenger. (package:flutter/src/material/debug.dart:169:17) E/flutter ( 5116): #4 debugCheckHasScaffoldMessenger (package:flutter/src/material/debug.dart:181:4) E/flutter ( 5116): #5 ScaffoldMessenger.of (package:flutter/src/material/scaffold.dart:148:12) E/flutter ( 5116): #6 LocalAuth.bioLogIn (package:itwi/pages/login/local_auth.dart:33:27) E/flutter ( 5116): E/flutter ( 5116):

Solution

On the way...