Skip to content
Get started
Menu
Get started

Icon button

A 48 dp icon action needs a nonempty tooltip. Neutral uses secondary text; accent marks a primary value affordance. Keyboard focus draws a circular ring and presses scale to 0.96. Disabled uses the disabled token. Use a labeled button when the glyph cannot explain the action. Variants: neutral, accent.

Neutral and accent icon actions in enabled, disabled and focused states.Neutral and accent icon actions in enabled, disabled and focused states.
Icon button
example/lib/screens/gallery_selection.dart
PaymentIconButton(
icon: PaymentIcons.close,
tooltip: 'Close',
onPressed: () {},
);

Variants: neutral, accent.

Situation Variant / composition Payment example
Fee policy help neutral Always provide a tooltip; use accent only for the selected or emphasized action.

Use Button when a word is needed to explain the action.

A null callback disables the action. Keep its tooltip specific enough to identify the action without relying on the glyph.

Do: Always provide a tooltip; use accent only for the selected or emphasized action.

Don’t: Ship an unlabeled icon-only control.

Use a tooltip that names the action, such as “Copy reference”. Use a labeled button when the icon needs an explanation.

Targets are at least 48 dp. Tooltips name icon actions. Links announce their role and external destinations. Copy feedback uses a live region and a check rather than color alone.

PaymentIconButton

class PaymentIconButton extends StatelessWidget · lib/src/controls/actions.dart

A 48 dp action with a spoken tooltip, circular focus ring and press feedback.

ParameterTypeDefaultDescription
icon:requiredIconData—Semantic glyph.
tooltip:requiredString—Nonempty spoken action label.
onPressed:requiredVoidCallback?—Host action; null disables interaction.
variant:PaymentIconButtonVariantPaymentIconButtonVariant.neutralSemantic icon color.
focusNode:FocusNode?—Host focus node for focus return.

PaymentIconButtonVariant

enum PaymentIconButtonVariant · lib/src/controls/actions.dart

Semantic icon colors. Nothing else exists.

ValueDescription
neutralSecondary text for ordinary controls.
accentAccent for the main value affordance.
Example fees screen with synthetic dataExample fees screen with synthetic data
Example: fees

PaymentIconButton

class PaymentIconButton extends StatelessWidget · lib/src/controls/actions.dart

A 48 dp action with a spoken tooltip, circular focus ring and press feedback.

ParameterTypeDefaultDescription
icon:requiredIconData—Semantic glyph.
tooltip:requiredString—Nonempty spoken action label.
onPressed:requiredVoidCallback?—Host action; null disables interaction.
variant:PaymentIconButtonVariantPaymentIconButtonVariant.neutralSemantic icon color.
focusNode:FocusNode?—Host focus node for focus return.

PaymentIconButtonVariant

enum PaymentIconButtonVariant · lib/src/controls/actions.dart

Semantic icon colors. Nothing else exists.

ValueDescription
neutralSecondary text for ordinary controls.
accentAccent for the main value affordance.