Skip to content

Should we always show the library in search dropdown? #3223

Open
@Hixie

Description

@Hixie

If I search for [SizedBox] I get:

Screen Shot 2022-10-14 at 11 19 18

The first three make sense to me as presented.

The constructors (4-8) are a bit weird. They say "SizedBox.constructorName constructor (in SizedBox)", which is true, but seems redundant. We know that the SizedBox.constructorName constructor is in SizedBox, by virtue of its name. What we don't know, and might be useful, is which library it's from.

This is relevant for example when searching for [Element]:

Screen Shot 2022-10-14 at 11 23 20

There are two Elements, as shown in the list, one in dart:html and one in widgets. There's one constructor listed. Which is it? Is it a dart:html constructor that creates an element with the given width, or a widgets constructor that creates and element with the given widget?

If we changed the parenthetical here to be the library, it would be clearer.

If we do this, we should probably also changes properties and methods to be fully qualified names (e.g. SizedBox.width (in widgets) rather than width (in SizedBox) or width (in widgets)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-searchIssues with the search boxcustomer-flutterIssues originating from important to Fluttertype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions