showZetaBottomSheet<T> function

Future<T?> showZetaBottomSheet<T>({
  1. required BuildContext context,
  2. String? title,
  3. Widget? body,
  4. bool centerTitle = true,
  5. bool isDismissible = true,
  6. bool enableDrag = true,
})

Function to show ZetaBottomSheet.

Uses showModalBottomSheet for functionality, but with Zeta styling and simplified functionality.

Implementation

Future<T?> showZetaBottomSheet<T>({
  required BuildContext context,
  String? title,
  Widget? body,
  bool centerTitle = true,
  bool isDismissible = true,
  bool enableDrag = true,
}) {
  return showModalBottomSheet<T>(
    context: context,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    builder: (BuildContext context) => ZetaBottomSheet(
      title: title,
      body: body,
      centerTitle: centerTitle,
    ),
  );
}