BankSavingsPotCard constructor

const BankSavingsPotCard({
  1. required SavingsPot pot,
  2. Key? key,
  3. VoidCallback? onTap,
  4. VoidCallback? onAddMoney,
  5. VoidCallback? onWithdraw,
  6. Widget itemBuilder(
    1. BuildContext,
    2. SavingsPot
    )?,
  7. String rateSuffix = 'AER',
  8. String profitRateSuffix = 'expected profit',
  9. String goalTemplate = 'of {amount} goal',
  10. String ownAccountLabel = 'Own account',
  11. String membersTemplate = '{n} members',
  12. String addLabel = 'Add',
  13. String withdrawLabel = 'Withdraw',
  14. String? semanticLabel,
  15. String ownAccountSemanticLabel = 'Has own account number',
  16. String sharedSemanticTemplate = 'Shared pot with {n} members',
  17. String addSemanticTemplate = 'Add money to {pot}',
  18. String withdrawSemanticTemplate = 'Withdraw from {pot}',
  19. EdgeInsetsGeometry? padding,
  20. BorderRadius? radius,
  21. Color? backgroundColor,
  22. Color? accentColor,
  23. Gradient? gradient,
  24. List<BoxShadow>? shadow,
  25. TextStyle? titleStyle,
  26. TextStyle? subtitleStyle,
  27. TextStyle? amountStyle,
  28. IconData? ownAccountIcon,
  29. IconData? sharedIcon,
  30. IconData? addIcon,
  31. IconData? withdrawIcon,
  32. double? ringSize,
})

Implementation

const BankSavingsPotCard({
  required this.pot,
  super.key,
  this.onTap,
  this.onAddMoney,
  this.onWithdraw,
  this.itemBuilder,
  this.rateSuffix = 'AER',
  this.profitRateSuffix = 'expected profit',
  this.goalTemplate = 'of {amount} goal',
  this.ownAccountLabel = 'Own account',
  this.membersTemplate = '{n} members',
  this.addLabel = 'Add',
  this.withdrawLabel = 'Withdraw',
  this.semanticLabel,
  this.ownAccountSemanticLabel = 'Has own account number',
  this.sharedSemanticTemplate = 'Shared pot with {n} members',
  this.addSemanticTemplate = 'Add money to {pot}',
  this.withdrawSemanticTemplate = 'Withdraw from {pot}',
  this.padding,
  this.radius,
  this.backgroundColor,
  this.accentColor,
  this.gradient,
  this.shadow,
  this.titleStyle,
  this.subtitleStyle,
  this.amountStyle,
  this.ownAccountIcon,
  this.sharedIcon,
  this.addIcon,
  this.withdrawIcon,
  this.ringSize,
});