Skip to content
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

Gesture error: LateInitializationError _mapZoomStart and _lastRotation #922

Closed
c4xp opened this issue Jun 4, 2021 · 4 comments
Closed

Comments

@c4xp
Copy link

c4xp commented Jun 4, 2021

Hi, I wanted to migrate to null-safety for flutter_map also but I get theese errors when I move the map (single gesture)
The map just scrolls to mountains of madness ..
In the meanwhile I will keep using 0.12.0

I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_mapZoomStart@750256441' has already been initialized.
I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_lastRotation@750256441' has already been initialized.
...
I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_lastRotation@750256441' has already been initialized.
...
I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_mapZoomStart@750256441' has already been initialized.
I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_lastRotation@750256441' has already been initialized.
...
I/flutter (13018): Another exception was thrown: LateInitializationError: Field '_lastRotation@750256441' has already been initialized.

I think it's related to the null-safety migration in: lib/src/gestures/gestures.dart
flutter 2.2.1
flutter_map 0.13.0
latlong2 0.8.0
environment: sdk: ">=2.12.0 <3.0.0"
Virtual device - release R - API level 30

I can provide any other info..

@danielocampo2
Copy link

danielocampo2 commented Jun 4, 2021

I am experiencing the same as well.

Edit: just to point out that I was using issues/829-nullsafety branch until this morning and it was working fine, so it must have been one of the latest changes.

@JaffaKetchup
Copy link
Member

I think it was probably commit 3ea0500, which happened just before merge, so @danielocampo2 is correct.

@andreandersson
Copy link
Contributor

I removed final from none-final fields, see #923

@kengu
Copy link
Contributor

kengu commented Jun 7, 2021

Version 0.13.1 is released to pub.dev with hotfix #923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants