showSubZeroContentSheet<T> method

Future<T?> showSubZeroContentSheet<T>({
  1. Widget? topContent,
  2. bool topContentOverflows = false,
  3. String? kicker,
  4. required String title,
  5. String? description,
  6. Widget? bodyContent,
  7. String? primaryButtonLabel,
  8. VoidCallback? onPrimaryPressed,
  9. String? secondaryButtonLabel,
  10. VoidCallback? onSecondaryPressed,
  11. bool showDualButtons = false,
  12. 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,
      ),
    );