Skip to content
Get started
Menu
Get started

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.

Inline Edit, external help and explanatory links, including disabled actions and a wrapping label.Inline Edit, external help and explanatory links, including disabled actions and a wrapping label.
Link
Inline Edit, external help and explanatory links, including disabled actions and a wrapping label at 200 percent text.
200% text
example/lib/screens/gallery_selection.dart
PaymentLink(label: 'Edit', onPressed: null);

Variants: primary, secondary.

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.

The host handles the destination or in-place action. A disabled link keeps its label visible and cannot be activated.

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.

Use a destination or action as the label, such as “View statement”. Mark external destinations so the person knows they are leaving the app.

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.

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

Inline text action; the host opens any destination.

ParameterTypeDefaultDescription
label:requiredString—Visible action label.
onPressed:requiredVoidCallback?—Host action; null disables interaction.
external:boolfalseAdds an external glyph, link role and destination hint.
variant:PaymentLinkVariantPaymentLinkVariant.primaryVisual 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.

ValueDescription
primaryUnderlined heading-weight accent action.
secondaryUnderlined secondary caption.
Example sign in screen with synthetic dataExample sign in screen with synthetic data
Example: sign in

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

Inline text action; the host opens any destination.

ParameterTypeDefaultDescription
label:requiredString—Visible action label.
onPressed:requiredVoidCallback?—Host action; null disables interaction.
external:boolfalseAdds an external glyph, link role and destination hint.
variant:PaymentLinkVariantPaymentLinkVariant.primaryVisual 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.

ValueDescription
primaryUnderlined heading-weight accent action.
secondaryUnderlined secondary caption.