-
Notifications
You must be signed in to change notification settings - Fork 508
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
Use Object.hash instead of hashValues #1431
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The new Flutter stable version (3.27.0) bumps the version of Dart, and the new version removed the function
hashValues
which breaks apps that just upgraded to Flutter 3.27.0.It's recommended to move to
Object.hash
flutter/flutter#96109