Chip
Compact payment filters and applied promo codes.



PaymentChip(label: 'Currency', value: 'IDR');Behavior
Section titled “Behavior”Callbacks choose the static, removable, dropdown or suggested kind. Removal uses a separate 48 dp action; suggested chips have a dashed edge. Multiple values summarize the first two labels plus a count. Arrow keys move between chip targets.
Variants
Section titled “Variants”Variants: label, label with value, removable.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Active history status filter | removable | Close clears that filter only; keep status choices as text tabs. |
Use Badge for non-interactive status.
States
Section titled “States”Empty, selected, disabled and error states use semantic tokens. Search additionally supports loading and no matches.
Layout. The label centres in the 48 dp box with 16 dp side padding, and icons centre on their line. When the label and value cannot share one line (large text, long values), the pill becomes a rounded rectangle with the control radius, so text never runs into a curved end. The remove target stays 48 dp.
Do and don’t
Section titled “Do and don’t”Do: Close clears that filter only; keep status choices as text tabs.
Don’t: Use chips as a replacement for status-filter tabs.
Content guidelines
Section titled “Content guidelines”Use short labels and compact localized values.
Accessibility
Section titled “Accessibility”Targets are at least 48 dp. Pickers restore focus; result counts announce without platform calls. Keyboard navigation preserves Tab traversal.
In the example app
Section titled “In the example app”

PaymentChip
class PaymentChip extends StatelessWidget · lib/src/forms/chip.dart
Compact value or filter; callbacks select removable, edit or suggested kind.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | Visible name identifying this value or control. |
value: | String? | — | Current value of this applied filter. |
values: | List<String>? | — | Multiple values summarized by this applied filter. |
onClose: | VoidCallback? | — | Removes this applied value through the host. |
onDropdown: | VoidCallback? | — | Opens host choices for this filter. |
onAddSuggestion: | VoidCallback? | — | Accepts this suggested filter through the host. |
PaymentChipList
class PaymentChipList extends StatelessWidget · lib/src/forms/chip.dart
Related chips with arrow-key focus traversal.
| Parameter | Type | Default | Description |
|---|---|---|---|
children:required | List<PaymentChip> | — | Chips in host reading order. |
reverse: | bool | false | Places the chip row in reverse reading order. |