letsar / flutter_slidable

A Flutter implementation of slidable list item with directional slide actions.
MIT License
2.73k stars 592 forks source link

fix: Scrollable of context for nullable instance #404

Closed adrianostas closed 4 months ago

adrianostas commented 1 year ago

Replace the Scrollable.of(context) with Scrollable.maybeOf(context) (after updating to Flutter3.7.0 tests are failing).

ueman commented 1 year ago

This fixes #402. You also need to raise the minimal Flutter version to 3.7 since the Scrollable.maybeOf(context) was introduced in 3.7 and thus does not work on older Flutter versions.

letsar commented 4 months ago

Thank you for this PR, I'll close it since this has already been fixed.