Skip to content

How do I prevent the Widget from building the list of selected items? #207

@nickolasdeluca

Description

@nickolasdeluca

I'm still styling the Widget, but I'd like to remove the list and instead simply show how many items are selected.

This is how I tried to implement what I want:

selectedItemBuilder: (_) => Text(
  "${controller.selectedItems.length} items selected",
  style: TextStyle(fontSize: 12),
),

This is a screenshot of the current state when multiple items are selected:

Image

Is it possible to achieve my goal or do I need to modify the base component to implement this feature?

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