BankSharedGoalProgressCard constructor

const BankSharedGoalProgressCard({
  1. required String goalName,
  2. required Money targetAmount,
  3. required Money savedAmount,
  4. Key? key,
  5. List<BankGoalContributor> contributors = const [],
  6. Widget? illustration,
  7. VoidCallback? onTap,
  8. VoidCallback? onContribute,
  9. String contributeLabel = 'Contribute',
  10. String progressTemplate = '{saved} of {target}',
  11. String contributorSingularLabel = 'contributor',
  12. String contributorPluralLabel = 'contributors',
  13. EdgeInsetsGeometry? padding,
  14. BorderRadius? radius,
  15. Color? backgroundColor,
  16. Color? accentColor,
  17. double? elevation,
  18. TextStyle? titleStyle,
  19. TextStyle? subtitleStyle,
  20. TextStyle? amountStyle,
  21. 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,
});