The failed assertion (!_debugDisposed is not true) from #5 comes from the animation status listener of RenderLocalHeroLeaderLayer. It marks itself for paint when the animation finishes despite already being disposed.
The PR #14 attempts to solve the same issue but relies on the debugDisposed which should not be used outside assert.
The check can be done using the attached property.
Also removed an unused dependency from the example.
The failed assertion (
!_debugDisposed is not true
) from #5 comes from the animation status listener ofRenderLocalHeroLeaderLayer
. It marks itself for paint when the animation finishes despite already being disposed.The PR #14 attempts to solve the same issue but relies on the
debugDisposed
which should not be used outsideassert
.The check can be done using the
attached
property.Also removed an unused dependency from the example.