Skip to content
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

[FEATURE] support for plugins to cancel map animations and let its animations get cancelled #1827

Open
josxha opened this issue Feb 14, 2024 · 0 comments
Labels
feature This issue requests a new feature S: core Scoped to the core flutter_map functionality
Milestone

Comments

@josxha
Copy link
Contributor

josxha commented Feb 14, 2024

What do you want implemented?

While writing the flutter_map_compass plugin, I stumbled upon some problems.
It is currently not possible to interact with ongoing map animations or interact with animations of other plugins.

#1715 (comment) describes the scope of animations as:

It's for plugins to provide animations for programmatic controls.

Because we don't see programmatic control of animations as a part of the core package it has a couple of limitations for plugins. Plugins are not able to interact with ongoing animations of other plugins or to cancel animations caused by gestures.

What other alternatives are available?

I tried use flutter_map_animations for the animations as this is probably the prefered animation system but I wasn't able to without a much more complicated setup for users.
Required steps for other plugins to use fma:

  • Let the user implement flutter_map_animations
  • Get the animation map controller as a parameter

Furthermore flutter_map_animations can't detect animations caused by gestures either, so it wouldn't really solve the problem.

Can you provide any other information?

In this video I perform a fling gesture and trigger a plugin gesture using flutter_map_compass. Both gestures play while the first should get cancelled for a better user experience.

animation.not.cancelled.2.1.mp4

Severity

Obtrusive: No workarounds are available, and this is essential to me

@josxha josxha added the feature This issue requests a new feature label Feb 14, 2024
@josxha josxha added this to the v7.0 milestone Feb 14, 2024
@josxha josxha added the S: core Scoped to the core flutter_map functionality label Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This issue requests a new feature S: core Scoped to the core flutter_map functionality
Projects
Status: To do
Development

No branches or pull requests

1 participant