Skip to content

Semantics for Material Date picker emits unnecessary semantics nodes #34431

@dnfield

Description

@dnfield

This may not be a bug with DatePicker, but rather with the semantics compiler.

Reproduction:

With semantics enabled, open a DatePicker and dump the tree.

You'll see several SemanticsNodes for the weekday header (each one is actually an ExcludeSemantics), and for each empty container for days of the week that are part of the previous month.

The tree should not include these nodes - they do not effect anything meaningful and make for extra time in tree operations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions