WalletNotice class

The wallet's one notice (FR-49 W-4, DESIGN.md §6.10, stage S11 C2), in two forms:

  • the line (WalletNotice.new): a system line on a bgHover fill at WalletShapes.notice, a 16 glyph, one sentence, and optional inline text actions. No title.
  • the card (WalletNotice.card): a bgCard group at WalletShapes.group (bgHover when it sits on a bgCard surface, such as a sheet), a 20 glyph beside an optional title, the message, an optional child, then its buttons. For the warnings whose words say what is at stake (a public payment, a memo that must not be lost).

Neither form draws a border or a coloured fill. §6.10 forbids both: the tone sits on the glyph, and on the card's title for a warning or danger.

message and title are LOCALIZED COPY — never a wallet value. Content a String cannot carry (a deposit memo in the mono face, with its own Copy button) goes in child, never in message.

Inheritance

Constructors

WalletNotice({Key? key, required WalletNoticeTone tone, required WalletGlyph glyph, required String message, List<Widget> actions = const [], bool liveRegion = false, VoidCallback? onDismiss, String? dismissLabel, Widget? child, bool messageInTone = false})
The line form.
const
WalletNotice.card({Key? key, required WalletNoticeTone tone, required WalletGlyph glyph, required String message, String? title, List<Widget> actions = const [], bool liveRegion = false, VoidCallback? onDismiss, String? dismissLabel, Widget? child})
The card form.
const

Properties

actions → List<Widget>
On the line: text buttons, inline beside the message until walletRowStacksAction moves them under it. On the card: §6.7 buttons, wrapped under the message and child.
final
child → Widget?
Drawn below the message, for content a String cannot carry.
final
dismissLabel → String?
The dismiss button's label; defaults to the wallet's "Dismiss".
final
glyph → WalletGlyph
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
liveRegion → bool
Announce the notice when it appears or its words change: set it for a notice that arrives after an async step (a fault, a refusal).
final
message → String
Localized copy only (see the class doc).
final
messageInTone → bool
The line only: draw the message in the tone colour too (the transparent arm of the privacy statement, whose words are the warning).
final
onDismiss → VoidCallback?
Draws a dismiss button when set.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String?
The card's title, drawn in the tone colour for a warning or danger. Null on the line, and optional on the card.
final
tone → WalletNoticeTone
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

toneColor(WalletColors colors, WalletNoticeTone tone) → Color
The glyph's colour for tone.