showAppBottomSheet<T> method

Future<T?> showAppBottomSheet<T>({
  1. required Widget child,
  2. bool isScrollControlled = true,
  3. bool isDismissible = true,
  4. bool enableDrag = true,
  5. Color? backgroundColor,
  6. ShapeBorder? shape,
})

Implementation

Future<T?> showAppBottomSheet<T>({
  required Widget child,
  bool isScrollControlled = true,
  bool isDismissible = true,
  bool enableDrag = true,
  Color? backgroundColor,
  ShapeBorder? shape,
}) => showModalBottomSheet<T>(
  context: this,
  isScrollControlled: isScrollControlled,
  isDismissible: isDismissible,
  enableDrag: enableDrag,
  backgroundColor: backgroundColor,
  shape:
      shape ??
      const RoundedRectangleBorder(
        borderRadius: BorderRadius.vertical(top: Radius.circular(16)),
      ),
  builder: (_) => child,
);