presentation/widgets/legal_links library

Classes

An underlined text link to document, at least 44 px tall, announced as a link by screen readers, and in the deep accent the app's text buttons use: the plain accent (colorScheme.primary) is 3:1 on paper, under the 4.5:1 WCAG asks of body-size text.

Enums

LegalDocument
The public legal pages.

Properties

legalDocumentLauncher ↔ ExternalUrlLauncher
The launcher openLegalDocument uses. Tests swap it to capture the URL without a platform channel, and restore it in tearDown.
getter/setter pair

Functions

openLegalDocument(BuildContext context, LegalDocument document) → Future<void>
Opens document in the browser, in the app's language.

Typedefs

ExternalUrlLauncher = Future<bool> Function(Uri url)
Opens url outside the app and returns whether an app accepted it.