LedgerRow class

The ledger row (.row): a leading (a monogram, a glyph or a date tab), the title joined to its value by the dot leader, and under them two sub lines, subtitle and trailingSubtitle (in the mono, or green, as their tones say), 14 above and below. onTap makes the whole row one link; semanticLabel names it when its words say too little. Stand rows in LedgerRows for the hairlines between them.

LedgerRow(leading: const LedgerGlyph(LucideIcons.wallet), title: 'Everyday', value: const LedgerAmount(6248.30), subtitle: 'Checking ··4821', subtitleMonospace: true)
Inheritance

Constructors

LedgerRow({required String title, Widget? leading, Widget? value, String? subtitle, String? trailingSubtitle, bool subtitleMonospace = false, LedgerTone subtitleTone = LedgerTone.plain, LedgerTone trailingSubtitleTone = LedgerTone.plain, Widget? tag, Widget? trailing, VoidCallback? onTap, String? semanticLabel, FocusNode? focusNode, bool autofocus = false, Key? key})
A row titled title.
const

Properties

autofocus → bool
Whether it takes focus when it first appears.
final
focusNode → FocusNode?
The control's focus; null keeps one of its own. The caller disposes the node it gives.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
A mark before the words (a glyph, a monogram).
final
onTap → VoidCallback?
Makes the whole row one link.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticLabel → String?
What a screen reader says when the row's words say too little.
final
subtitle → String?
The sub line's start words.
final
subtitleMonospace → bool
The start words in the mono (an account's kind and mask).
final
subtitleTone → LedgerTone
The ink of the sub line's start words.
final
tag → Widget?
A tag after the title (Pending).
final
title → String
The row's words, joined to its value by the dot leader.
final
trailing → Widget?
A mark at the row's end (a chevron, a switch).
final
trailingSubtitle → String?
The sub line's end words.
final
trailingSubtitleTone → LedgerTone
The ink of the sub line's end words.
final
value → Widget?
The value at the line's end, on the leader (a LedgerAmount).
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.
override
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