-
Notifications
You must be signed in to change notification settings - Fork 127
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
Null safety (cherry-pick from upstream) #31
Conversation
Co-Authored-By: morvagergely <51244648+morvagergely@users.noreply.github.com>
It was crashing for me with the following error: ``` flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type '_InternalLinkedHashMap<Object?, Object?>' is not a subtype of type 'Map<Object, Object>' ``` No reason to use <Object, Object> types instead of <dynamic, dynamic> as used everywhere else
…ich excludes null. (#676)
I haven't found any regressions, feedback and results of your manual testing are very welcome! |
This is huge, I had a couple things laying around but didn't find the time to push it further. I will see if i can test this tomorrow. |
I am running into |
Are you compiling the example app? |
And have you run |
Will, I am trying to use it in my app which is now possible due to the NNBD migration. |
Are you also running |
Hmm somehow the Mapbox framework is still in there, don't think this is something that we want. |
Ok, I am starting to understand this a little better. Managed to get it to work on this branch. Looking good so far. |
May I ask what you did to solve this? A wild guess: could this file https://github.com/m0nac0/maplibre-annotation-extension/blob/master/Podfile.lock be the reason the Mapbox SDK is/was wrongfully loaded? |
There are 2 things that were confusing to me.
And yes I am wondering the same, not sure if the |
Yes, |
Hmm I don't think it matters, the |
I was able to run the examples of that branch on an iPad Pro running iOS 14.7.1 and will test on 15.0.2 on Monday. Not done with the review though. |
Able to compile and run on iPadOS 15.0.2. Crashes when I want to download offline maps.
|
@mindthefish Have you checked whether that crash also happens before this PR? |
Just tested, yes, it also happens on |
Thank you for testing, would you mind opening a separate issue for the crash then? |
Would anyone like to give more feedback on this? Otherwise I'd merge this. |
Fixes #16
Switch to null safe (NNBD) mode, mostly cherry-picked and adapted from upstream (tobrun/flutter-mapbox-gl). Includes two more recent bug fixes from upstream that seem to be related.