show static method
Future<void>
show(
- BuildContext context, {
- required String featureName,
- required String description,
- required List<
BankPlanTier> plans, - String? currentTierId,
- ValueChanged<
BankPlanTier> ? onUpgrade, - VoidCallback? onDismiss,
- EdgeInsetsGeometry? padding,
- BorderRadius? radius,
- Color? backgroundColor,
- Color? accentColor,
- List<
BoxShadow> ? cardShadow, - IconData? headerIcon,
- TextStyle? titleStyle,
- TextStyle? descriptionStyle,
- String headlineTemplate = 'Upgrade to access {feature}',
- String dismissLabel = 'Maybe later',
- String upgradeLabel = 'Upgrade',
- String currentPlanLabel = 'Current plan',
- String perMonthLabel = '/mo',
- Widget? header,
- String? semanticLabel,
Implementation
static Future<void> show(
BuildContext context, {
required String featureName,
required String description,
required List<BankPlanTier> plans,
String? currentTierId,
ValueChanged<BankPlanTier>? onUpgrade,
VoidCallback? onDismiss,
EdgeInsetsGeometry? padding,
BorderRadius? radius,
Color? backgroundColor,
Color? accentColor,
List<BoxShadow>? cardShadow,
IconData? headerIcon,
TextStyle? titleStyle,
TextStyle? descriptionStyle,
String headlineTemplate = 'Upgrade to access {feature}',
String dismissLabel = 'Maybe later',
String upgradeLabel = 'Upgrade',
String currentPlanLabel = 'Current plan',
String perMonthLabel = '/mo',
Widget? header,
Widget? footer,
String? semanticLabel,
}) =>
showModalBottomSheet<void>(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (_) => BankPaywallSheet(
featureName: featureName,
description: description,
plans: plans,
currentTierId: currentTierId,
onUpgrade: onUpgrade,
onDismiss: onDismiss,
padding: padding,
radius: radius,
backgroundColor: backgroundColor,
accentColor: accentColor,
cardShadow: cardShadow,
headerIcon: headerIcon,
titleStyle: titleStyle,
descriptionStyle: descriptionStyle,
headlineTemplate: headlineTemplate,
dismissLabel: dismissLabel,
upgradeLabel: upgradeLabel,
currentPlanLabel: currentPlanLabel,
perMonthLabel: perMonthLabel,
header: header,
footer: footer,
semanticLabel: semanticLabel,
),
);