diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart index 6e42c2c629..225bbf57a4 100644 --- a/packages/flutter/lib/src/material/tabs.dart +++ b/packages/flutter/lib/src/material/tabs.dart @@ -478,8 +478,10 @@ class _TabBarState extends State { @override void dispose() { - if (_controller != null) + if (_controller != null) { _controller.animation.removeListener(_handleTabControllerAnimationTick); + _controller.removeListener(_handleTabControllerTick); + } // We don't own the _controller Animation, so it's not disposed here. super.dispose(); }