-
Notifications
You must be signed in to change notification settings - Fork 510
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
Flutter web apps on iOS 18.2 have issues only fixed in the most recent flutter version 3.27.0 (which mapbox_gl is not able to compile to) #1430
Comments
just looking at the error messages this seems like a minor issue. HashValues was deprecated in the most recent dart versions. |
I opened up a PR fixing it #1431 |
Does 3.27.0 really fix ios 18.2 issues? |
mapbox_gl:
git:
url: https://github.com/irvine5k/maps.git #https://github.com/flutter-mapbox-gl/maps.git
ref: fix-hash-values am i missing something ? |
Same here, looking at the pubspec.lock file it seems it is still using the original mapbox_gl_platform_interface files instead of the changed ones:
(this was after deleting the .lock file and flutter clean, flutter pub cache clean) |
@Shiba-Kar @TBA-Lucas, the underlining packages point to https://github.com/tobrun/flutter-mapbox-gl.git instead of my fork; I can't change it for the PR. It should be fixed once the PR is merged. |
I'd recommend you to fork my branch, and change the references of the following dependencies in
Then you can use the fork in your project while my fix (or their fix) isn't merged. I'm sorry for not giving clear instructions earlier. |
dependencies:
mapbox_gl:
git:
url: https://github.com/flutter-mapbox-gl/maps.git
dependency_overrides:
mapbox_gl_platform_interface:
git:
url: https://github.com/irvine5k/maps.git
ref: fix-hash-values
path: mapbox_gl_platform_interface
mapbox_gl_web:
git:
url: https://github.com/irvine5k/maps.git
ref: fix-hash-values
path: mapbox_gl_web This works for me . |
Awesome, that works @shibakar! And thanks for the PR @irvine5k, upgrading worked, hope it gets merged soon :) Edit: found an issue with animateCamera with the new version: #1431 (comment) |
merged sorry for the wait! |
The most recent iOS 18.2 update introduced a big issue for Flutter web apps regarding fingure and scroll gestures. There seems to be a fix for that only in the most recent flutter version 3.27.0. Unfortunately it seems like an app using mapbox_gl is not able to compile to that version.
iOS 18.2 Related issues and pull requests:
flutter/flutter#158299
flutter/flutter#155987
flutter/engine#56719
flutter/engine#56949
It seems that on the way from 3.24 to 3.27 the flutter team introduced some breaking changes for mapbox_gl, I'm getting compile errors. They seem to be related to the method 'hashValues' causing errors in mapbox_gl_platform_interface.dart:
I know mapbox_gl hasn't seen a lot of activity recently, but it would be greatly appreciated if someone here is able to make mapbox_gl compile on the newest flutter version!
The text was updated successfully, but these errors were encountered: