WalletShapes class
Every corner radius the wallet UI draws, named for the ROLE it plays (FR-49 W-11, ADR-0564, stage S11 C1). A widget never writes a radius literal: it reads one of these, so a host that registers its own WalletShapes reshapes every surface of that role at once.
The defaults are Relim's RelimRadii wherever the role exists there, so
Relim matches without registering anything. bar, chip and progress
have no RelimRadii constant; they are the design-refresh spec's numbers
(§9.4 item 3, DESIGN.md §6.13 and §6.12).
- Inheritance
-
- Object
- ThemeExtension<
WalletShapes> - WalletShapes
- Annotations
Constructors
- WalletShapes({double hero = 28, double group = 24, double tile = 22, double bar = 20, double notice = 16, double qr = 16, double field = 22, double chip = 18, double sheet = 28, double dialog = 28, double progress = 3})
-
const
- WalletShapes.forPlatform(TargetPlatform platform)
-
The SDK's defaults for
platform: a group and a sheet's top corners are rounder on Apple platforms (26 and 38, against 24 and 28), as the platforms' own grouped lists and sheets are.factory
Properties
- bar → double
-
The sync bar.
final
- chip → double
-
Chips, the watch-only badge, the chain chip, the recovery word pills.
final
- dialog → double
-
A Material dialog.
final
- field → double
-
A text field, the asset-picker field, the mnemonic pill field.
final
- group → double
-
Grouped lists and data cards (the review, the quote, the refund
verification, the rescan and onboarding sections), and a card-notice.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hero → double
-
The balance card.
final
- notice → double
-
A notice line (
WalletNotice).final - progress → double
-
The linear progress bar's ends.
final
- qr → double
-
The QR tile.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sheet → double
-
A bottom sheet's top corners (all four on iOS, where it is inset).
final
- tile → double
-
The wallet's action tiles.
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{double? hero, double? group, double? tile, double? bar, double? notice, double? qr, double? field, double? chip, double? sheet, double? dialog, double? progress}) → WalletShapes -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant WalletShapes? other, double t) → WalletShapes -
Linearly interpolate with another ThemeExtension object.
override
-
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) → WalletShapes - The registered shapes, or WalletShapes.forPlatform for the theme's platform when the host registered none. Like WalletIcons, a missing hook is not a wiring error: the defaults are a complete, working set.