Use Object.hash instead of hashValues#1431
Use Object.hash instead of hashValues#1431felix-ht merged 3 commits intoflutter-mapbox-gl:masterfrom
Conversation
|
Fixes #1430 |
|
can you remove all formatting changes? Maybe also go with |
|
@felix-ht you're correct, I misread and it's Object.hash. I removed the formatting changes as well. |
|
I'm getting an error on animateCamera using this PR, no idea if it is from the changes, the new flutter version or the way I added the PR to the dependencies (#1430 (comment)). (Weirdly enough the error is only happening in --profile or --release mode) |
|
@TBA-Lucas It doesn't seem to be related to this PR. Seems that the @felix-ht do you anything about it? @override
Future<bool?> animateCamera(CameraUpdate cameraUpdate,
{Duration? duration}) async {
final cameraOptions = Convert.toCameraOptions(cameraUpdate, _map);
final around = getProperty(cameraOptions, 'around');
final bearing = getProperty(cameraOptions, 'bearing');
final center = getProperty(cameraOptions, 'center');
final pitch = getProperty(cameraOptions, 'pitch');
final zoom = getProperty(cameraOptions, 'zoom');
_map.flyTo({
if (around.jsObject != null) 'around': around, // around is probably null at some point.
if (bearing != null) 'bearing': bearing,
if (center.jsObject != null) 'center': center,
if (pitch != null) 'pitch': pitch,
if (zoom != null) 'zoom': zoom,
if (duration != null) 'duration': duration.inMilliseconds,
});
return true;
} |
|
This issue causing a lot of problems with new flutter version. Please update the package and merge this PR. |
|
When this can be merged? |
Is this related on your PR? |
|
@moshOntong-IT maybe it’s due the fact that the inner packages points to this repository which is broken while I fixed locally pointing to my branch which has the fix, but I can’t make this PR points to my branch. Tldr: my PR should be merged |
|
Could you review it again when possible? I’d appreciate it @felix-ht |
* Use Object.all instead of hashValues * Use Object.hash instead of .hashAll * dart format
|
Is this change going to be published to the main branch? |
|
well the issue is that @tobrun can do releases - and he hasn't been active in a while - so unless he does a release your best shot is to just fork this repo and directly use your repo as the source for your builds. mapbox_gl:
git:
url: https://github.com/<username/org>/flutter-mapbox-gl.git
mapbox_gl_platform_interface:
git:
url: https://github.com/<username/org>/flutter-mapbox-gl.git
path: mapbox_gl_platform_interface
mapbox_gl_web:
git:
url: https://github.com/<username/org>/flutter-mapbox-gl.git
path: mapbox_gl_web |
The new Flutter stable version (3.27.0) bumps the version of Dart, and the new version removed the function
hashValueswhich breaks apps that just upgraded to Flutter 3.27.0.It's recommended to move to
Object.hashflutter/flutter#96109