Closed ghost closed 2 years ago
Thanks for the heads up, I changed the code to work on stable and master branches.
Scrollable.maybeOf()
already landed on stable (Flutter 3.7)
I got this error when I started using Flutter version 3.7.11 on the stable channel with gap: ^2.0.1
I've just released a fix with Scrollable.maybeOf
The upcoming Flutter change from
of
tomaybeOf
might breakgap: ^2.0.0
, because of its usage of Scrollable.of.Issue description
When using
Gap(...)
outside of a Scrollable container the issue will show up as:A flutter version without the change will run without error.
What will/has change(d)
PR Add
maybeOf
for all the cases where of returns nullable has been merged toflutter:master
and will most probably land in a beta and then stable release.A description of the Flutter changes and a migration guide is available at: Migrate
of
to non-nullable return values, and addmaybeOf
Current Status 11/16/2022
gap: ^2.0.0
on currentflutter:stable
channel [Not reproduceable]gap: ^2.0.0
onflutter:beta
channel [Not reproduceable]gap: ^2.0.0
onflutter:master
channel [Reproduceable]Quick fix for Flutter master / upcoming beta? channel users
I have made a change in my fork at fix_scrollable_of_issue_with_flutter_master
To use this fix, make the following change in your
pubspec.yaml
@letsar Thank you for this convenient package. This is just meant as a heads up.