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: reduced motion mode #126

Open
aelnona opened this issue Nov 3, 2023 · 2 comments
Open

Feature: reduced motion mode #126

aelnona opened this issue Nov 3, 2023 · 2 comments
Labels
blocked Something else blocks this enhancement New feature or request

Comments

@aelnona
Copy link

aelnona commented Nov 3, 2023

Hi! Thanks so much for your work on the app, it's been a real joy to use :)

Only thing is, I keep animations on my phone turned off in the accessibility settings, as the motion gives me nausea - but it seems Glider does not follow these for every animation (understandably; I suppose it's not something most users need or care about ofc).

Could there perhaps be some setting to toggle all animations on/off?

@Mosc Mosc added the enhancement New feature or request label Nov 4, 2023
@Mosc
Copy link
Owner

Mosc commented Nov 6, 2023

I've looked into this a bit. It turns out the system setting is exposed as disableAnimations in Flutter, but the framework itself doesn't actually use that value for anything.

I might add code that respects that system accessibility setting and limits animations when turned on.

@Mosc Mosc added the blocked Something else blocks this label Nov 24, 2023
@Mosc
Copy link
Owner

Mosc commented Nov 24, 2023

The good news is that the Flutter framework does use the mentioned field, for instance to make page transitions instant. I've added code that uses it to disable the app's custom animations as well (989be94).

The bad news is that... it doesn't actually work in practice. At least not on fairly recent Android versions. Flutter always reports the disable animations accessibility setting as being turned off. This appears to be a framework bug: flutter/flutter#130976.

I would prefer this to be fixed by the Flutter team, but there is always the option of adding a separate setting for it in the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Something else blocks this enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants