Commit e271fa3e authored by Viktor Lidholt's avatar Viktor Lidholt Committed by Hans Muller

Fixes issue with removing and re-adding a toolbar which is connected to the...

Fixes issue with removing and re-adding a toolbar which is connected to the same TabBarController (#9015)
parent 657a4c3f
......@@ -478,8 +478,10 @@ class _TabBarState extends State<TabBar> {
@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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment