Skip to content
Get started
Menu
Get started

Chip

Compact payment filters and applied promo codes.

Date, method, status, currency and promo code chips with editable, removable and suggested actions.Date, method, status, currency and promo code chips with editable, removable and suggested actions.
Chip
Date, method, status, currency and promo code chips with editable, removable and suggested actions at 200 percent text.
200% text
example/lib/screens/gallery_forms.dart
PaymentChip(label: 'Currency', value: 'IDR');

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: label, label with value, removable.

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.

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: Close clears that filter only; keep status choices as text tabs.

Don’t: Use chips as a replacement for status-filter tabs.

Use short labels and compact localized values.

Targets are at least 48 dp. Pickers restore focus; result counts announce without platform calls. Keyboard navigation preserves Tab traversal.

Example history screen with synthetic dataExample history screen with synthetic data
Example: history

PaymentChip

class PaymentChip extends StatelessWidget · lib/src/forms/chip.dart

Compact value or filter; callbacks select removable, edit or suggested kind.

ParameterTypeDefaultDescription
label:requiredString—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.

ParameterTypeDefaultDescription
children:requiredList<PaymentChip>—Chips in host reading order.
reverse:boolfalsePlaces the chip row in reverse reading order.