showBasicModalSheet<T> function

Future<T?> showBasicModalSheet<T>({
  1. required BuildContext context,
  2. required WidgetBuilder builder,
  3. bool isScrollControlled = true,
  4. BoxConstraints? constraints,
  5. bool isDismissible = true,
  6. bool enableDrag = true,
})

Implementation

Future<T?> showBasicModalSheet<T>({
  required BuildContext context,
  required WidgetBuilder builder,
  bool isScrollControlled = true,
  BoxConstraints? constraints,
  bool isDismissible = true,
  bool enableDrag = true,
}) async {
  return showModalBottomSheet<T>(
    context: context,
    builder: builder,
    elevation: 0,
    shape: RoundedRectangleBorder(
      borderRadius: BorderRadius.circular(6),
    ),
    isScrollControlled: isScrollControlled,
    enableDrag: enableDrag,
    constraints: constraints,
    isDismissible: isDismissible,
  );
}