Skip to content

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

@TBA-Lucas

Description

@TBA-Lucas

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:

Error: The method 'hashValues' isn't defined for the class 'LatLng'.
 - 'LatLng' is from 'package:mapbox_gl_platform_interface/mapbox_gl_platform_interface.dart'
 
Error: The method 'hashValues' isn't defined for the class 'CameraPosition'.
 - 'CameraPosition' is from 'package:mapbox_gl_platform_interface/mapbox_gl_platform_interface.dart'
 
Error: The method 'hashValues' isn't defined for the class 'LatLngQuad'.
 - 'LatLngQuad' is from 'package:mapbox_gl_platform_interface/mapbox_gl_platform_interface.dart'
 
Error: The method 'hashValues' isn't defined for the class 'MinMaxZoomPreference'.
 - 'MinMaxZoomPreference' is from 'package:mapbox_gl_platform_interface/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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions