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

Animation scale in Android #51

Open
daniele-athome opened this issue Jan 5, 2022 · 1 comment
Open

Animation scale in Android #51

daniele-athome opened this issue Jan 5, 2022 · 1 comment
Labels
platform-android Application running on Android specifically 🚀 enhancement New feature or request

Comments

@daniele-athome
Copy link
Owner

daniele-athome commented Jan 5, 2022

Flutter won't use provided value by the operating system for setting time dilation (see flutter/flutter#10101). Although there is a way to get these values apparently, starting API level 17:

I'm not sure which one to apply directly to timeDilation... and the transition scale should probably be applied only to transition animations (manually?)

Also open another bug to Flutter for this.


https://titanwolf.org/Network/Articles/Article?AID=304f1ee4-07a2-4138-85fb-a843c9ddb4bf

@daniele-athome daniele-athome added 🚀 enhancement New feature or request platform-android Application running on Android specifically labels Jan 5, 2022
@daniele-athome daniele-athome added this to the Science fiction milestone Jan 5, 2022
@daniele-athome
Copy link
Owner Author

daniele-athome commented Jan 16, 2022

Apparently the settings values are not automatically notified by the system so we either accept what comes in at startup or periodically (when?) poll them.

Also, timeDilation doesn't really work on release builds for some reason... but I couldn't use it anyway because it's not meant for this.

  • TRANSITION_ANIMATION_SCALE should be used in (full screen) PageRoutes
  • WINDOW_ANIMATION_SCALE should be used for dialogs and other "windows" (e.g. toasts)
  • ANIMATOR_DURATION_SCALE should be used for widget animations (e.g. loading spinner)

It would be nice that Flutter did this though...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-android Application running on Android specifically 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant