BankIncomeSorterSheet class

Triggered on a large incoming payment. Splits across pots by percentage or fixed amount. Backed by BankIncomeSorterController.

Inheritance

Constructors

BankIncomeSorterSheet({required BankIncomeSorterController controller, Key? key, VoidCallback? onDismiss, String title = 'Income Received', String remainingLabel = 'Remaining', String addPotLabel = 'Add pot', String repeatLabel = 'Repeat this split automatically next time', String confirmLabel = 'Confirm', String removeEntryTooltip = 'Remove', EdgeInsetsGeometry? padding, BorderRadius? radius, Color? backgroundColor, Color? accentColor, TextStyle? titleStyle, TextStyle? amountStyle, IconData? addPotIcon, IconData? removeEntryIcon})
const

Properties

accentColor Color?
Overrides the incoming amount and switch accent. Defaults to the theme primary colour.
final
addPotIcon IconData?
Overrides the add-pot glyph. Defaults to Icons.add.
final
addPotLabel String
Caption of the add-pot action. Defaults to 'Add pot'.
final
amountStyle TextStyle?
Merged over the computed incoming-amount style (BankTokens.numeralHero in the accent colour).
final
backgroundColor Color?
Overrides the sheet fill colour. Defaults to the theme surface.
final
confirmLabel String
Caption of the confirm button. Defaults to 'Confirm'.
final
controller BankIncomeSorterController
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onDismiss VoidCallback?
final
padding EdgeInsetsGeometry?
Overrides the sheet content padding. Defaults to space4 with a space2 top inset.
final
radius BorderRadius?
Overrides the sheet corner radius. Defaults to the theme sheetRadius.
final
remainingLabel String
Label of the remaining row. Defaults to 'Remaining'.
final
removeEntryIcon IconData?
Overrides the entry remove glyph. Defaults to Icons.close.
final
removeEntryTooltip String
Tooltip on each entry's remove button. Defaults to 'Remove'.
final
repeatLabel String
Caption of the repeat switch. Defaults to 'Repeat this split automatically next time'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String
Heading of the sheet. Defaults to 'Income Received'.
final
titleStyle TextStyle?
Merged over the computed heading style (BankTokens.headlineSmall in onSurface).
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BankIncomeSorterSheet>
Creates the mutable state for this widget at a given location in the tree.
override
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

show(BuildContext context, {required BankIncomeSorterController controller}) Future<void>