Link
Inline actions hug their label with a 48 dp target and no container. Primary uses an underlined accent heading; secondary uses an underlined caption. The underline marks a link even when the accent is monochrome and matches heading text. External destinations have a trailing glyph, link role and spoken hint. In-place actions use the button role. The host opens the destination. Variants: primary, secondary.



PaymentLink(label: 'Edit', onPressed: null);Variants
Section titled “Variants”Variants: primary, secondary.
Which variant when
Section titled “Which variant when”| Situation | Variant / composition | Payment example |
|---|---|---|
| Merchant support destination | secondary | Use a host callback and external indicator for a destination outside the app. |
Use Button for the main task action.
States
Section titled “States”The host handles the destination or in-place action. A disabled link keeps its label visible and cannot be activated.
Do and don’t
Section titled “Do and don’t”Do: Use a host callback and external indicator for a destination outside the app.
Don’t: Put navigation or URL-opening implementation inside the kit.
Content guidelines
Section titled “Content guidelines”Use a destination or action as the label, such as “View statement”. Mark external destinations so the person knows they are leaving the app.
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.
PaymentLink
class PaymentLink extends StatelessWidget · lib/src/controls/actions.dart
Inline text action; the host opens any destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | Visible action label. |
onPressed:required | VoidCallback? | — | Host action; null disables interaction. |
external: | bool | false | Adds an external glyph, link role and destination hint. |
variant: | PaymentLinkVariant | PaymentLinkVariant.primary | Visual text hierarchy. |
semanticLabel: | String? | — | Spoken replacement, such as Edit: Your details. |
PaymentLinkVariant
enum PaymentLinkVariant · lib/src/controls/actions.dart
Inline text hierarchy. Nothing else exists.
| Value | Description |
|---|---|
primary | Underlined heading-weight accent action. |
secondary | Underlined secondary caption. |
In the example app
Section titled “In the example app”

PaymentLink
class PaymentLink extends StatelessWidget · lib/src/controls/actions.dart
Inline text action; the host opens any destination.
| Parameter | Type | Default | Description |
|---|---|---|---|
label:required | String | — | Visible action label. |
onPressed:required | VoidCallback? | — | Host action; null disables interaction. |
external: | bool | false | Adds an external glyph, link role and destination hint. |
variant: | PaymentLinkVariant | PaymentLinkVariant.primary | Visual text hierarchy. |
semanticLabel: | String? | — | Spoken replacement, such as Edit: Your details. |
PaymentLinkVariant
enum PaymentLinkVariant · lib/src/controls/actions.dart
Inline text hierarchy. Nothing else exists.
| Value | Description |
|---|---|
primary | Underlined heading-weight accent action. |
secondary | Underlined secondary caption. |