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.


PaymentIconButton( icon: PaymentIcons.close, tooltip: 'Close', onPressed: () {}, );Variants
Section titled “Variants”Variants: neutral, accent.
Which variant when
Section titled “Which variant when”| 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.
States
Section titled “States”A null callback disables the action. Keep its tooltip specific enough to identify the action without relying on the glyph.
Do and don’t
Section titled “Do and don’t”Do: Always provide a tooltip; use accent only for the selected or emphasized action.
Don’t: Ship an unlabeled icon-only control.
Content guidelines
Section titled “Content guidelines”Use a tooltip that names the action, such as “Copy reference”. Use a labeled button when the icon needs an explanation.
Accessibility
Section titled “Accessibility”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.
| Parameter | Type | Default | Description |
|---|---|---|---|
icon:required | IconData | — | Semantic glyph. |
tooltip:required | String | — | Nonempty spoken action label. |
onPressed:required | VoidCallback? | — | Host action; null disables interaction. |
variant: | PaymentIconButtonVariant | PaymentIconButtonVariant.neutral | Semantic icon color. |
focusNode: | FocusNode? | — | Host focus node for focus return. |
PaymentIconButtonVariant
enum PaymentIconButtonVariant · lib/src/controls/actions.dart
Semantic icon colors. Nothing else exists.
| Value | Description |
|---|---|
neutral | Secondary text for ordinary controls. |
accent | Accent for the main value affordance. |
In the example app
Section titled “In the example app”

PaymentIconButton
class PaymentIconButton extends StatelessWidget · lib/src/controls/actions.dart
A 48 dp action with a spoken tooltip, circular focus ring and press feedback.
| Parameter | Type | Default | Description |
|---|---|---|---|
icon:required | IconData | — | Semantic glyph. |
tooltip:required | String | — | Nonempty spoken action label. |
onPressed:required | VoidCallback? | — | Host action; null disables interaction. |
variant: | PaymentIconButtonVariant | PaymentIconButtonVariant.neutral | Semantic icon color. |
focusNode: | FocusNode? | — | Host focus node for focus return. |
PaymentIconButtonVariant
enum PaymentIconButtonVariant · lib/src/controls/actions.dart
Semantic icon colors. Nothing else exists.
| Value | Description |
|---|---|
neutral | Secondary text for ordinary controls. |
accent | Accent for the main value affordance. |