universe
universe copied to clipboard
Keep getting exception _TileLayerState#8dfe3(tickers: tracking 4 tickers) was disposed with an active Ticker.
Hey, I'm using Universe to display a google map in an stateful widget, but whenever I pop the widget and open it again I get the following error. The following assertion was thrown while finalizing the widget tree: _TileLayerState#8dfe3(tickers: tracking 4 tickers) was disposed with an active Ticker.
_TileLayerState created a Ticker via its TickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before calling super.dispose().
Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.
The offending ticker was: _WidgetTicker(created by _TileLayerState#8dfe3)
The stack trace when the _WidgetTicker was actually created was:
#0 new Ticker.