-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Is there a way to customize the dropdown height? I am using the package without any suggestions, so the only suggestion shown is the input query. I searched for an API to adjust the container height but where not able to find it.
ChipsInput<String>(
initialValue: ["init_testval"],
enabled: true,
autocorrect: false,
decoration: InputDecoration(
labelText: title,
),
findSuggestions: (String query) {
if (query.trim().isEmpty) return [];
return [query];
},
onChanged: (data) {
debugPrint(data.toString());
},
chipBuilder: (context, state, profile) {
return InputChip(
key: ObjectKey(profile),
label: Text(profile),
onDeleted: () => state.deleteChip(profile),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
);
},
suggestionBuilder: (context, query) {
return ListTile(
title: Text("add '$query'"),
);
},
);
Metadata
Metadata
Assignees
Labels
No labels