Closed sebastianbuechler closed 2 years ago
Hi @sebastianbuechler, thanks for your feedback.
The plugin is indeed supposed to work with both Flutter 2 and 3. The latter introduced a null-safety change to the WidgetsBinding class, removing nullability for the instance
field.
To avoid breaking support for Flutter 2, I put back the null-safety operator ?
, as it will only trigger a warning on Flutter 3 (more informations here). Plus, this warning is now inhibited by ambiguating instance
back and accessing it just like in Flutter 2.
Closing this issue as it is now fixed in version 1.1.3
. Thanks again !
Thank you!
When running with Flutter 2.10.5 I get an error because of null safety. Is this package really compatible with Flutter version < 3.0.0?
I saw for another package https://stackoverflow.com/questions/72256150/flutter-error-method-addpostframecallback-cannot-be-called-on-widgetsbinding that this issue was appearing as part of Flutter v2 vs v3.