Skip to content
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

This PR fixes ADA screen reader issues for days outside the current month in the calendar. #885

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

queendevelopers
Copy link

Previously, the screen reader would announce "Text" on iOS for outside days when visibility is set to false, and on Android, users were able to tap the blank cells. This PR resolves these issues by returning a Container widget at the earliest possible stage. As a result, no GestureDetector is created, and the cells are not tappable. This ensures a better user experience and ADA compliance. Thank you.

final isOutside = day.month != focusedMonth.month;

if (isOutside && _shouldBlockOutsideDays) {
return Container();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion : use SizedBox.shrink() instead of Container();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants