Sub topic 1
Why Accessibility Matters and Who It Serves
Prerequisites
This chapter assumes that you know basic Dart syntax, can build layouts with Flutter widgets, and have used StatelessWidget and StatefulWidget. You should also be able to run a Flutter app on an emulator or physical device.
Accessibility means designing software that people with different abilities can use. In a Flutter app, this includes people who are blind or have low vision, people who are deaf or hard of hearing, people with limited movement, and people with cognitive or learning differences.
Accessibility also helps people whose situation temporarily changes. A person with a broken arm may use one hand. Someone in a noisy place may not hear audio. A parent holding a child may have only one hand available. Bright sunlight can make low-contrast text difficult for anyone to read.
Accessibility is part of product quality
A user should be able to understand the screen, move through its controls, complete important tasks, and learn whether an action succeeded. These needs apply whether the user interacts by touch, keyboard, switch device, voice control, or a screen reader.
Accessibility is not a separate visual theme that you add at the end. It affects choices throughout development:
- A button needs a clear name, not only an icon.
- A color should not be the only way to communicate an error.
- Text should remain readable when the user increases its size.
- A gesture should have another way to perform the same action.
- Focus should move through controls in a sensible order.
Flutter provides many useful defaults through standard widgets. However, custom controls and unusual layouts can hide information from assistive technology. You must test the experience, not only the appearance.
Different users have different needs
| User or situation | Common barrier | Helpful design choice |
|---|---|---|
| Screen-reader user | An icon has no meaningful name | Provide a label and an appropriate control role |
| User with limited movement | A target is small or requires a precise gesture | Use a large target and an alternative action |
| User with low vision | Text has weak contrast or cannot grow | Use sufficient contrast and flexible layouts |
| User in a noisy place | Information is communicated only through sound | Provide visible text or status feedback |
An accessible design usually improves the experience for everyone. Clear labels make controls easier to understand. Predictable focus helps keyboard users and people who navigate quickly. Flexible text layouts reduce failures on small screens.
Think in terms of barriers
A disability describes a person’s condition, while a barrier is a problem created by an environment or product. For example, limited vision becomes an app barrier when a control has no accessible name or when text disappears at a larger size. This distinction keeps the design process focused on removing obstacles rather than making assumptions about users.
Accessibility work is most effective when it starts during planning and continues through implementation and testing. Manual testing with platform screen readers reveals problems that a screenshot cannot show. Automated widget tests can then help prevent common regressions.
Exercise
A save icon has no text and performs an important action. Name two accessibility questions you should ask before shipping it.
Show answer
Ask whether assistive technology announces a clear name and whether the action has a visible or spoken result after it completes. Also check that the target is large enough and has a non-gesture alternative.