Select
Choose an occupation or payment method.




PaymentSelect<String>( label: 'Occupation', options: _occupations, value: null, onChanged: null, );Behavior
Section titled “Behavior”Single selection uses radios and closes on a changed choice. Multiple selection uses draft checkboxes and Apply. Seven or more options add a local filter. Disabled choices explain why. Focus returns to the trigger. Re-tapping the selected radio leaves the sheet open. validator integrates with Form; focusNode supports focusing the first error. Fields fill the available width.
Variants
Section titled “Variants”Variants: single, multiple.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Problem category | single | Use a short bounded list; null leaves Send disabled until a category is selected. |
Use Search field for long province lists.
States
Section titled “States”Default, focused, disabled and error. Errors include an icon, text and an edge. Selection controls support hardware keyboards.
Height. An empty select keeps its hint on one line (ellipsized), so it is as tall as its siblings at 200% text (#65).
Do and don’t
Section titled “Do and don’t”Do: Use a short bounded list; null leaves Send disabled until a category is selected.
Don’t: Offer unsupported options that the host cannot handle.
Content guidelines
Section titled “Content guidelines”Use short, specific labels and explain how to correct an error.
Accessibility
Section titled “Accessibility”Input text is 16 dp. Legends precede fields in reading order. Labels and errors stay in semantics when visually hidden. Pickers restore focus.
In the example app
Section titled “In the example app”

Customization
Section titled “Customization”The select box follows the field-family PaymentFieldTheme: fill, resting outline, corners, tap highlight and the selected value’s typography. The option list and sheet rows keep their own styling. See Text field customization.
PaymentSelect
class PaymentSelect extends StatefulWidget · lib/src/forms/select.dart
Field trigger with a radio sheet, or draft checkboxes and Apply.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | label for this field. |
options:required | List<PaymentSelectOption<T>> | — | options for this field. |
value:required | T? | — | value for this field. |
onChanged:required | ValueChanged<T>? | — | onChanged for this field. |
hint: | String? | — | hint for this field. |
description: | String? | — | description for this field. |
errorText: | String? | — | errorText for this field. |
validator: | FormFieldValidator<T>? | — | validator for this field. |
required: | bool | false | required for this field. |
hiddenElements: | Set<PaymentFieldPart> | const {} | hiddenElements for this field. |
size: | PaymentSize | PaymentSize.medium | size for this field. |
focusNode: | FocusNode? | — | focusNode for this field. |
PaymentSelect.multiple(…) — Stages a set of values in a checkbox sheet and reports on Apply. onChanged receives the complete selected set; null disables the field.
| Parameter | Type | Default | Description |
|---|---|---|---|
key: | Key? | — | — |
label:required | String | — | — |
options:required | List<PaymentSelectOption<T>> | — | — |
values:required | Set<T> | — | — |
onChanged:required | ValueChanged<Set<T>>? | — | — |
hint: | String? | — | — |
description: | String? | — | — |
errorText: | String? | — | — |
validator: | FormFieldValidator<Set<T>>? | — | — |
required: | bool | false | — |
hiddenElements: | Set<PaymentFieldPart> | const {} | — |
size: | PaymentSize | PaymentSize.medium | — |
focusNode: | FocusNode? | — | — |
PaymentSelectOption
class PaymentSelectOption · lib/src/forms/select.dart
One option; a disabled reason explains unavailable choices.
| Parameter | Type | Default | Description |
|---|---|---|---|
value:required | T | — | Host value. |
label:required | String | — | Visible option name. |
disabledReason: | String? | — | Disables the option with an explanation. |