showBottomSheet<T> function
Shows a modal bottom sheet and returns the sheet widget.
Implementation
Future<T?> showBottomSheet<T>({
required BuildContext context,
required Widget child,
bool isScrollControlled = true,
bool isDismissible = true,
bool enableDrag = true,
bool useSafeArea = true,
}) =>
showModalBottomSheet<T>(
context: context,
isScrollControlled: isScrollControlled,
isDismissible: isDismissible,
enableDrag: enableDrag,
useSafeArea: useSafeArea,
backgroundColor: Colors.transparent,
barrierColor: Colors.black.withValues(alpha: 0.4),
builder: (BuildContext context) => child,
);