BankSharedGoalProgressCard class

A card showing a shared savings goal with contributor avatars and progress.

Inheritance

Constructors

BankSharedGoalProgressCard({required String goalName, required Money targetAmount, required Money savedAmount, Key? key, List<BankGoalContributor> contributors = const [], Widget? illustration, VoidCallback? onTap, VoidCallback? onContribute, String contributeLabel = 'Contribute', String progressTemplate = '{saved} of {target}', String contributorSingularLabel = 'contributor', String contributorPluralLabel = 'contributors', EdgeInsetsGeometry? padding, BorderRadius? radius, Color? backgroundColor, Color? accentColor, double? elevation, List<BoxShadow>? shadow, BoxBorder? border, TextStyle? titleStyle, TextStyle? subtitleStyle, TextStyle? amountStyle, String? semanticLabel})
const

Properties

accentColor → Color?
Overrides the percent text, progress bar, and avatar accent. Defaults to the theme primary colour.
final
amountStyle → TextStyle?
Merged over the computed percent style (BankTokens.numeralSmall).
final
backgroundColor → Color?
Overrides the card fill colour. Defaults to the theme surface.
final
border → BoxBorder?
Overrides the card outline. Defaults on dark surfaces to a BankTokens.hairlineWidth hairline in BankTokens.hairlineColor; light surfaces keep an invisible border of the same width. Pass const Border() to remove it.
final
contributeLabel → String
Caption of the contribute action. Defaults to 'Contribute'.
final
contributorPluralLabel → String
Contributor-count noun otherwise. Defaults to 'contributors'.
final
contributors → List<BankGoalContributor>
final
contributorSingularLabel → String
Contributor-count noun when there is exactly one contributor. Defaults to 'contributor'.
final
elevation → double?
Legacy depth opt-out. The card renders the kit shadow language (BankTokens.shadowCardFor of the theme background brightness) instead of Material elevation; pass 0 — or use a theme whose elevationLow is 0, such as Voltage — to flatten the card to hairline-only depth.
final
goalName → String
final
hashCode → int
The hash code for this object.
no setterinherited
illustration → Widget?
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onContribute → VoidCallback?
final
onTap → VoidCallback?
final
padding → EdgeInsetsGeometry?
Overrides the card content padding. Defaults to space4 all round.
final
progressTemplate → String
Progress line template; {saved} and {target} are substituted. Defaults to '{saved} of {target}'.
final
radius → BorderRadius?
Overrides the card corner radius. Defaults to the theme cardRadius.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
savedAmount → Money
final
semanticLabel → String?
When non-null, wraps the card in a Semantics node with this label. Defaults to no extra semantics node.
final
shadow → List<BoxShadow>?
Overrides the card shadow. Defaults to BankTokens.shadowCardFor of the theme background brightness; pass const [] to flatten.
final
subtitleStyle → TextStyle?
Merged over the computed progress-line style (BankTokens.bodySmall in onSurfaceVariant).
final
targetAmount → Money
final
titleStyle → TextStyle?
Merged over the computed goal-name style (BankTokens.labelLarge in onSurface).
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