-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AnimationContoller in Tile is not being disposed #595
Comments
Correctly dispose TileLayer and Tiles in the order required by the TickerProviderStateMixin. The AnimationController in the tiles was not being disposed at all. After this change `_pruneTiles` sometimes gets called after the widget is already disposed - added a mounted check to prevent this.
Nevermind the Flutter version, this was introduced in d4aefae |
@maRci002 Can you review my change and see if that makes sense. |
I have this issue as well
|
I haven't seen this error, however when I made #584 PR then I saw @kuhnroyal I think your patch seems fine. |
Can this issue be considered fixed? |
@salvatore373 Not unless my PR gets merged. Currently this project seems inactive. |
@kuhnroyal Are you talking about the |
Yes |
what is the status of this issue? I still have the same problem with the latest library... |
Still experiencing the same issue on 0.13.1 |
A call to
animationController?.dispose()
is missing after line https://github.com/johnpryan/flutter_map/blob/master/lib/src/layer/tile_layer.dart#L951This fails on Flutter 1.17.0-dev.3.1 with the following error:
I have not noticed this error before with an older Flutter version and since there seem to be no changes in the TileLayer that can cause this I assume this is a new check in Flutter.
The text was updated successfully, but these errors were encountered: