From f9d973e7ba3920c423269b443b861eb4aafa0fdf Mon Sep 17 00:00:00 2001 From: John Ryan Date: Tue, 10 Sep 2019 16:01:26 -0700 Subject: [PATCH] call super.dispose() in sample (#141) closes flutter/flutter#40157 --- animations/lib/src/basics/07_tween_sequence.dart | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/animations/lib/src/basics/07_tween_sequence.dart b/animations/lib/src/basics/07_tween_sequence.dart index 7ad91ac96..8850686ec 100644 --- a/animations/lib/src/basics/07_tween_sequence.dart +++ b/animations/lib/src/basics/07_tween_sequence.dart @@ -49,6 +49,11 @@ class _TweenSequenceDemoState extends State animation = TweenSequence(sequenceItems).animate(controller); } + void dispose() { + controller.dispose(); + super.dispose(); + } + @override Widget build(BuildContext context) { return Scaffold(