showSubZeroContentSheet<T> method
Future<T?>
showSubZeroContentSheet<T>({
- Widget? topContent,
- bool topContentOverflows = false,
- String? kicker,
- required String title,
- String? description,
- Widget? bodyContent,
- String? primaryButtonLabel,
- VoidCallback? onPrimaryPressed,
- String? secondaryButtonLabel,
- VoidCallback? onSecondaryPressed,
- bool showDualButtons = false,
- SubZeroBottomSheetConfig config = const SubZeroBottomSheetConfig(),
Shows a SubZero styled modal bottom sheet with pre-built content structure.
Implementation
Future<T?> showSubZeroContentSheet<T>({
Widget? topContent,
bool topContentOverflows = false,
String? kicker,
required String title,
String? description,
Widget? bodyContent,
String? primaryButtonLabel,
VoidCallback? onPrimaryPressed,
String? secondaryButtonLabel,
VoidCallback? onSecondaryPressed,
bool showDualButtons = false,
SubZeroBottomSheetConfig config = const SubZeroBottomSheetConfig(),
}) =>
showSubZeroBottomSheet<T>(
context: this,
config: config,
builder: (context) => SubZeroBottomSheetContent(
topContent: topContent,
topContentOverflows: topContentOverflows,
kicker: kicker,
title: title,
description: description,
bodyContent: bodyContent,
primaryButtonLabel: primaryButtonLabel,
onPrimaryPressed: onPrimaryPressed,
secondaryButtonLabel: secondaryButtonLabel,
onSecondaryPressed: onSecondaryPressed,
showDualButtons: showDualButtons,
),
);