BankSharedGoalProgressCard constructor
const
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,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? amountStyle,
- String? semanticLabel,
Implementation
const BankSharedGoalProgressCard({
required this.goalName,
required this.targetAmount,
required this.savedAmount,
super.key,
this.contributors = const [],
this.illustration,
this.onTap,
this.onContribute,
this.contributeLabel = 'Contribute',
this.progressTemplate = '{saved} of {target}',
this.contributorSingularLabel = 'contributor',
this.contributorPluralLabel = 'contributors',
this.padding,
this.radius,
this.backgroundColor,
this.accentColor,
this.elevation,
this.titleStyle,
this.subtitleStyle,
this.amountStyle,
this.semanticLabel,
});