showKActionModalBottomSheet function

dynamic showKActionModalBottomSheet({
  1. required BuildContext context,
  2. required List<KActionModalBottomSheetItem> items,
  3. Widget? header,
  4. Color? backgroundColor,
  5. double? elevation,
  6. ShapeBorder? shape,
  7. Clip? clipBehavior,
  8. BoxConstraints? constraints,
  9. Color? barrierColor,
  10. bool isScrollControlled = false,
  11. bool useRootNavigator = false,
  12. bool isDismissible = true,
  13. bool enableDrag = true,
  14. bool? showDragHandle,
  15. bool useSafeArea = false,
  16. bool enabledHapticFeedback = true,
  17. RouteSettings? routeSettings,
  18. AnimationController? transitionAnimationController,
  19. Offset? anchorPoint,
})

Implementation

showKActionModalBottomSheet({
  required BuildContext context,
  required List<KActionModalBottomSheetItem> items,
  Widget? header,
  Color? backgroundColor,
  double? elevation,
  ShapeBorder? shape,
  Clip? clipBehavior,
  BoxConstraints? constraints,
  Color? barrierColor,
  bool isScrollControlled = false,
  bool useRootNavigator = false,
  bool isDismissible = true,
  bool enableDrag = true,
  bool? showDragHandle,
  bool useSafeArea = false,
  bool enabledHapticFeedback = true,
  RouteSettings? routeSettings,
  AnimationController? transitionAnimationController,
  Offset? anchorPoint,
}) {
  return showKModalBottomSheet(
      context: context,
      backgroundColor: backgroundColor,
      elevation: elevation,
      shape: shape,
      clipBehavior: clipBehavior,
      constraints: constraints,
      barrierColor: barrierColor,
      isScrollControlled: isScrollControlled,
      useRootNavigator: useRootNavigator,
      isDismissible: isDismissible,
      enableDrag: enableDrag,
      showDragHandle: showDragHandle,
      useSafeArea: useSafeArea,
      routeSettings: routeSettings,
      transitionAnimationController: transitionAnimationController,
      anchorPoint: anchorPoint,
      builder: (context) {
        return KActionModalBottomSheet(
            items: items,
            header: header,
            enabledHapticFeedback: enabledHapticFeedback);
      });
}