Closed lukehutch closed 1 month ago
This seems to be the issue:
https://github.com/flutter/flutter/issues/98473#issuecomment-1058500136
The longer-term solution is that anything setting up an isolate where plugins are expected to work should call
DartPluginRegistrant.ensureInitialized()
, which will run all Dart plugin registration (similar to how they already need to callWidgetsFlutterBinding.ensureInitialized()
to make platform message work in the first place).
This spontaneously fixed itself after flutter clean
. You may want to suggest that users do a flutter clean
after adding flutter_fgbg
to their pubspec.yaml
.
I tried incorporating
flutter_fgbg
into my project, and on initialization I get this error: