-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Accessibility - Exposing ReduceMotion #65874
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
Comments
Reduce motion and disable animations are not equivalent. |
@jonahwilliams Thanks for clarifying! Is there any way to detect the Reduce Motion from the app? Or, is there a reason why |
reduce motion is exposed through the window's AccessibilityFeatures. We decided to stop putting everything on media query after a point. |
@jonahwilliams I see. I think the Would it be okay to open PR just to expose this |
I think @HansMuller had some idea on this. I believe we should make a new inherited widget that only exposes the accessibility features, and prefer those over the existing ones on media query. |
This a good suggestion for improving Flutter's a11y support. Factoring reduceMotion into the widget implementations would take a considerable effort. CC @chunhtai |
Any updates on this? |
There is no progress done on this issue. Since there is already a way to get the reduce motion setting, this is a low priority issue. We welcome any contribution though. |
@chunhtai would you see |
We can add to |
View.of(context).platformDispatcher.accessibilityFeatures.reduceMotion Can this be considered solved? |
Checked and only working in iOS. But no working other platforms (Web, Desktop macOS) |
Uh oh!
There was an error while loading. Please reload this page.
Use case
For iOS, the
MediaQuery.of(context).disableAnimations
does not detect whether it is Reduce Motion on or off currently.Thus, it would be very beneficial to expose the
AccessibilityFeatures.reduceMotion
toMediaQueryData
so that the users can check the flag, Or, alternatively, we should make thedisableAnimations
flag to reflect thereduceMotion
flag for iOS.Proposal
Solution 1:
AccessibilityFeatures.reduceMotion
toMediaQueryData
Solution 2:
MediaQueryData.disableAnimations
flag to reflect on iOS's ReduceMotion flag.The text was updated successfully, but these errors were encountered: