Skip to content

Select

Dropdown selection component.

Installation

bash
bricolage_ui add select
bash
flutter pub add bricolage_ui

Usage

dart
CustomSelect<String>(
  value: selectedCountry,
  items: ['USA', 'UK', 'Canada'],
  onChanged: (value) {
    setState(() {
      selectedCountry = value;
    });
  },
)

API Reference

Properties

PropertyTypeDefaultDescription
valueT?nullCurrently selected value
itemsList<T>requiredList of selectable items