Skip to content

Commit f1938fe

Browse files
authored
Disposed animation controller
1 parent 8f4bffe commit f1938fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: lib/draggable_widget.dart

+6
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ class _DraggableWidgetState extends State<DraggableWidget>
194194
});
195195
super.initState();
196196
}
197+
198+
@override
199+
void dispose() {
200+
animationController.dispose();
201+
super.dispose();
202+
}
197203

198204
@override
199205
void didUpdateWidget(DraggableWidget oldWidget) {

0 commit comments

Comments
 (0)