showPumaModalBottomSheet function

void showPumaModalBottomSheet({
  1. required BuildContext context,
  2. required Widget child,
  3. bool expand = false,
  4. Color? backgroundColor,
  5. bool isDismissible = true,
  6. bool enableDrag = true,
  7. Widget? topBarStartDecorator,
  8. Widget? topBarTitleDecorator,
  9. Widget? topBarEndDecorator,
})

Implementation

void showPumaModalBottomSheet({
  required BuildContext context,
  required Widget child,
  bool expand = false,
  Color? backgroundColor,
  bool isDismissible = true,
  bool enableDrag = true,
  Widget? topBarStartDecorator,
  Widget? topBarTitleDecorator,
  Widget? topBarEndDecorator,
}) {
  showCupertinoModalBottomSheet(
    barrierColor: Theme.of(context).colorScheme.onSurface.withAlpha(130),
    expand: expand,
    context: context,
    isDismissible: isDismissible,
    enableDrag: enableDrag,
    builder: (context) => ModalBottomSheet(
      child: child,
      backgroundColor: backgroundColor,
      startDecorator: topBarStartDecorator,
      titleDecorator: topBarTitleDecorator,
      endDecorator: topBarEndDecorator,
    ),
  );
}