call super.dispose() in sample (#141)

closes flutter/flutter#40157
pull/143/head
John Ryan 5 years ago committed by GitHub
parent fde7a0aefe
commit f9d973e7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -49,6 +49,11 @@ class _TweenSequenceDemoState extends State<TweenSequenceDemo>
animation = TweenSequence<Color>(sequenceItems).animate(controller);
}
void dispose() {
controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(

Loading…
Cancel
Save