showZetaBottomSheet<T> function
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,
),
);
}