-
Notifications
You must be signed in to change notification settings - Fork 972
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
Accessibility Pass - Subtask - Animation Times and Reduced Motion mode #204
base: accessability-pass
Are you sure you want to change the base?
Conversation
….times. Adjusted collectable icon so it doesn't flash like crazy in reduced motion mode. Still trying to figure out how to remove the animation when the user returned from the editorials to the wonder illustrations view.
…erive from styles.
fit: BoxFit.contain, | ||
), | ||
) | ||
.animate(onPlay: (controller) => controller.repeat()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be using the default animation time that is set in app_scaffold, so it should already be shortened?
lib/styles/styles.dart
Outdated
late final Duration delayMed = Duration(milliseconds: disabled ? 0 : 500); | ||
late final Duration delaySlow = Duration(milliseconds: disabled ? 0 : 700); | ||
late final Duration delayXSlow = Duration(milliseconds: disabled ? 0 : 1050); | ||
late final Duration delayXXSlow = Duration(milliseconds: disabled ? 0 : 4000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really want to add a ton of extra fields here... I think for most of these we will want to keep them as "non standard" values inside the view and we'll just support low-motion directly in that view. But I don't want to add a ton of boilerplate either. I'll have to think on this for a bit...
…d instead allow everything to pass in their custom MS and retrieve the duration or delay, which is affected by disableAnimations.
Separate branch for setting up reduced motion mode by moving all animation-based times into styles.times and setting their duration to 1.
Currently forcing this true for debug purposes - will switch it out after completion.