AccessibilityContext extension

Ergonomic accessibility helpers on top of MediaQuery + the kit-wide AccessibilityConfig.

All getters read live from MediaQuery, so any widget that calls them rebuilds when the user toggles a system accessibility setting.

on

Properties

a11yKit AccessibilityConfig

Available on BuildContext, provided by the AccessibilityContext extension

Shortcut to the kit's AccessibilityConfig (action labels, minimum touch target, etc.).
no setter
prefersBoldText bool

Available on BuildContext, provided by the AccessibilityContext extension

true when the OS has requested bold text. Defaults to false when there is no MediaQuery ancestor.
no setter
prefersHighContrast bool

Available on BuildContext, provided by the AccessibilityContext extension

true when the OS has requested a high-contrast color palette.
no setter
prefersReducedMotion bool

Available on BuildContext, provided by the AccessibilityContext extension

true when the OS has requested reduced or no motion, AND the kit is configured to honor it.
no setter
textScaler TextScaler

Available on BuildContext, provided by the AccessibilityContext extension

The active text scaler. Reads live from MediaQuery so widgets rebuild when the user changes their text-size setting.
no setter
usesAccessibleNavigation bool

Available on BuildContext, provided by the AccessibilityContext extension

true when the user is navigating with an assistive device such as a screen reader or switch control.
no setter