BankSavingsPotCard constructor
const
BankSavingsPotCard({
- required SavingsPot pot,
- Key? key,
- VoidCallback? onTap,
- VoidCallback? onAddMoney,
- VoidCallback? onWithdraw,
- Widget itemBuilder()?,
- String rateSuffix = 'AER',
- String profitRateSuffix = 'expected profit',
- String goalTemplate = 'of {amount} goal',
- String ownAccountLabel = 'Own account',
- String membersTemplate = '{n} members',
- String addLabel = 'Add',
- String withdrawLabel = 'Withdraw',
- String? semanticLabel,
- String ownAccountSemanticLabel = 'Has own account number',
- String addSemanticTemplate = 'Add money to {pot}',
- String withdrawSemanticTemplate = 'Withdraw from {pot}',
- EdgeInsetsGeometry? padding,
- BorderRadius? radius,
- Color? backgroundColor,
- Color? accentColor,
- Gradient? gradient,
- List<
BoxShadow> ? shadow, - TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- TextStyle? amountStyle,
- IconData? ownAccountIcon,
- IconData? addIcon,
- IconData? withdrawIcon,
- 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,
});