Skip to content

Select

Dropdown selection component.

Installation

bash
flutter_studio add select
bash
flutter pub add flutter_studio

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