Skip to content

Custumize the dropdown height #32

@alessioC42

Description

@alessioC42

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.
image

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions