reduceMotion property
final
Whether the platform is requesting that animations be reduced or replaced with cross-fades in preference to motion effects.
This corresponds to the iOS "Reduce Motion" accessibility setting.
Unlike disableAnimations, this flag does not automatically alter framework animations such as those controlled via AnimationController. Instead, it is intended to be read by widgets that want to tone down or replace non-essential motion, for example by substituting a cross-fade for a slide transition.
When implementing custom animations, you should check this property and adjust behavior accordingly; for example, by preferring a fade over movement when it is true.
See also:
- dart:ui.AccessibilityFeatures.reduceMotion, the underlying primitive flag provided by the platform.
- dart:ui.PlatformDispatcher.accessibilityFeatures, where the setting originates.
Implementation
final bool reduceMotion;