-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issuec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Use case
Hey,
I really like the new SearchBar / SearchAnchor.bar Widget!
However I think most of the suggestions will come from an async api call based on the input instead of prepared datasets.
Proposal
Something like this would be really nice:
SearchAnchor.bar(
suggestionsBuilder: (context, controller) async {
final suggestionList = await getSuggestions(controller.text);
return suggestionList.map((suggestion) =>
ListTile(
title: Text(suggestion),
onTap: () {
//Some action
},
)
);
})
ahmednfwela, brunoocasali, ips-jm, enoy19, Willian199 and 16 more
Metadata
Metadata
Assignees
Labels
⏳Bot is counting down the days until it unassigns the issueBot is counting down the days until it unassigns the issuec: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages team