showCustomSheet<T> static method

Future<T?> showCustomSheet<T>({
  1. required BuildContext context,
  2. required Widget builder(
    1. BuildContext
    ),
  3. Color? backgroundColor,
  4. BorderRadius? borderRadius,
  5. EdgeInsetsGeometry? padding,
  6. double? minHeight,
  7. double? maxHeight,
  8. bool showDragIndicator = true,
  9. Color? dragIndicatorColor,
  10. bool scrollable = true,
  11. bool isDismissible = true,
  12. bool enableDrag = true,
  13. bool useRootNavigator = false,
  14. bool isScrollControlled = true,
  15. Color? barrierColor,
  16. double? elevation,
  17. AnimationController? transitionAnimationController,
})

Implementation

static Future<T?> showCustomSheet<T>({
  required BuildContext context,
  required Widget Function(BuildContext) builder,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  EdgeInsetsGeometry? padding,
  double? minHeight,
  double? maxHeight,
  bool showDragIndicator = true,
  Color? dragIndicatorColor,
  bool scrollable = true,
  bool isDismissible = true,
  bool enableDrag = true,
  bool useRootNavigator = false,
  bool isScrollControlled = true,
  Color? barrierColor,
  double? elevation,
  AnimationController? transitionAnimationController,
}) {
  return showModalBottomSheet<T>(
    context: context,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    useRootNavigator: useRootNavigator,
    isScrollControlled: isScrollControlled,
    backgroundColor: Colors.transparent,
    barrierColor: barrierColor,
    elevation: elevation,
    transitionAnimationController: transitionAnimationController,
    builder: (context) => AtomicCustomSheetBody(
      backgroundColor: backgroundColor,
      borderRadius: borderRadius,
      padding: padding,
      minHeight: minHeight,
      maxHeight: maxHeight,
      showDragIndicator: showDragIndicator,
      dragIndicatorColor: dragIndicatorColor,
      scrollable: scrollable,
      child: builder(context),
    ),
  );
}