Skip to content

Commit f9d973e

Browse files
authored
call super.dispose() in sample (#141)
closes flutter/flutter#40157
1 parent fde7a0a commit f9d973e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

animations/lib/src/basics/07_tween_sequence.dart

+5
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ class _TweenSequenceDemoState extends State<TweenSequenceDemo>
4949
animation = TweenSequence<Color>(sequenceItems).animate(controller);
5050
}
5151

52+
void dispose() {
53+
controller.dispose();
54+
super.dispose();
55+
}
56+
5257
@override
5358
Widget build(BuildContext context) {
5459
return Scaffold(

0 commit comments

Comments
 (0)