akshathjain / sliding_up_panel

A draggable Flutter widget that makes implementing a SlidingUpPanel much easier!
https://pub.dartlang.org/packages/sliding_up_panel
Other
1.36k stars 379 forks source link

Prevent invalid usages of the AnimationController after dispose #278

Closed franco-stuart closed 2 years ago

franco-stuart commented 2 years ago

This makes the AnimationController nullable and nulls it when the SlidingUpPanel state gets disposed.

The AnimationController now has to be checked with each usage, to prevent errors after disposal.