Commit 10b99137 authored by Hans Muller's avatar Hans Muller

Merge pull request #1549 from HansMuller/dismissable_dispose

Defunct DismissableState should not have live animations
parents 4254f5fb fd8e64c4
...@@ -64,6 +64,12 @@ class _DismissableState extends State<Dismissable> { ...@@ -64,6 +64,12 @@ class _DismissableState extends State<Dismissable> {
double _dragExtent = 0.0; double _dragExtent = 0.0;
bool _dragUnderway = false; bool _dragUnderway = false;
void dispose() {
_fadePerformance?.stop();
_resizePerformance?.stop();
super.dispose();
}
bool get _directionIsYAxis { bool get _directionIsYAxis {
return return
config.direction == DismissDirection.vertical || config.direction == DismissDirection.vertical ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment