Skip to content

DropdownMenu does not scroll to highlighted item when searching #120349

@nicokoch

Description

@nicokoch

Use case

I have a DropdownMenu with enableSearch = true and a lot of items (so the Dropdown is scrollable).
When entering text in the input field, the Dropdownmenu correclty searches for the item and highlights it.

The problem is: the dropdown list does not automatically scroll to the highlighted position, which means the user cannot see that his search has valid results.

Proposal

If the highlightedItem is outside the view (menuHeight is contrained), automatically scroll to the highlighted item upon search.

Metadata

Metadata

Assignees

Labels

c: new featureNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.r: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions