flutter_map_animations icon indicating copy to clipboard operation
flutter_map_animations copied to clipboard

AnimateTo same point w/ different offset doesn't work

Open flutterWithChris opened this issue 2 years ago • 0 comments

I was trying to animate to the same point with different offsets when showing/closing a bottom sheet. This did not work due to the movementCallback being set to null after hitting this line that prevents duplicate destinations from being animated to:

final bool hasMovement = (dest != null && dest != mapController.camera.center) || (zoom != null && zoom != mapController.camera.zoom);

PR #38 has been submitted with a one line fix :)

flutterWithChris avatar Aug 07 '24 16:08 flutterWithChris