WalletTypography class
Type the wallet UI needs beyond Material's TextTheme (FR-49 W-2,
ADR-0564). A host registers one in its ThemeData.extensions to set the
face the SDK uses for identifiers.
- Inheritance
-
- Object
- ThemeExtension<
WalletTypography> - WalletTypography
- Annotations
Constructors
- WalletTypography({TextStyle mono = const TextStyle(fontFamily: 'monospace')})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- mono → TextStyle
-
The face for identifiers: addresses, the swap refund and destination
fields, a deposit memo. Only its family, fallbacks and features carry
(monoOn); each site keeps its own size, weight and colour. The SDK
bundles no font (ruling A), so a host that wants a specific face bundles
it and names it here.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{TextStyle? mono}) → WalletTypography -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant WalletTypography? other, double t) → WalletTypography -
Linearly interpolate with another ThemeExtension object.
override
-
monoOn(
TextStyle base) → TextStyle -
baseset in the mono face: its family, fallbacks and font features, with the site's own size, spacing, weight and colour kept. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
of(
BuildContext context) → WalletTypography - The registered typography, or fallback when the host registered none.
Constants
- fallback → const WalletTypography
- The SDK's own default: the platform's generic monospace face.