BankCurrencyWalletTabBar class

Horizontal scrollable tab row showing one tab per currency wallet.

Each tab displays the flag emoji (if provided), the ISO currency code, and the balance formatted for the current BankUiScope numeral style. The selected tab receives a 3 px primary-colour bottom border and a subtle surface-variant background to indicate active state.

Selecting a tab automatically scrolls it into view.

Inheritance

Constructors

BankCurrencyWalletTabBar({required List<BankCurrencyWallet> wallets, required int selectedIndex, required ValueChanged<int> onSelected, Key? key, double? height, EdgeInsetsGeometry? padding, double? spacing, BorderRadius? tabRadius, Color? selectedColor, Color? selectedBackgroundColor, TextStyle? labelStyle, TextStyle? balanceStyle, Duration? animationDuration, Curve? animationCurve, String semanticLabelBuilder(BankCurrencyWallet wallet, String formattedBalance)?})
const

Properties

animationCurve Curve?
Overrides the selection animation curve. Defaults to BankTokens.curveStandard.
final
animationDuration Duration?
Overrides the selection animation duration. Defaults to BankTokens.durationFast.
final
balanceStyle TextStyle?
Merged over the balance style (theme numeralSmall).
final
hashCode int
The hash code for this object.
no setterinherited
height double?
Overrides the row height. Defaults to 72.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelStyle TextStyle?
Merged over the currency-code label style (BankTokens.labelMedium).
final
onSelected ValueChanged<int>
Called when the user taps a tab, with the tapped tab's index.
final
padding EdgeInsetsGeometry?
Overrides the horizontal list padding. Defaults to EdgeInsets.symmetric(horizontal: BankTokens.space4).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedBackgroundColor Color?
Overrides the selected tab's background. Defaults to the theme surfaceVariant.
final
selectedColor Color?
Overrides the selected tab's accent (bottom border and label/code colour). Defaults to the theme primary.
final
selectedIndex int
Index of the currently selected tab.
final
semanticLabelBuilder String Function(BankCurrencyWallet wallet, String formattedBalance)?
Builds each tab's semantic announcement. Defaults to '{currencyName}, balance {formattedBalance}'.
final
spacing double?
Overrides the gap between tabs. Defaults to BankTokens.space2.
final
tabRadius BorderRadius?
Overrides each tab's corner radius. Defaults to BorderRadius.circular(BankTokens.radiusSmall).
final
wallets List<BankCurrencyWallet>
The list of currency wallets to display, one tab per wallet.
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<BankCurrencyWalletTabBar>
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