Skip to content

Clarify the docs of suggestionsBuilder of SearchAnchor #183105

@ahmedsameha1

Description

@ahmedsameha1

Currently, I am trying to use a SearchAnchor on an app. I am frustrated that the suggestionsBuilder property documentation doesn't give a clear characterization of when this function is called.
I see that it is only called if this condition: searchValue != _controller.text is true, at lines 974 and 1024 at: https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/material/search_anchor.dart.
I suggest utilizing this fact to clarify its documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectd: api docsIssues with https://api.flutter.dev/f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorsteam-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