showCBottomSheet method

Future<void> showCBottomSheet(
  1. ShowBottomSheetAction action,
  2. BuildContext context
)

Implementation

Future<void> showCBottomSheet(
  ShowBottomSheetAction action,
  BuildContext context,
) async {
  await showModalBottomSheet(
    context: context,
    useRootNavigator: false,
    scrollControlDisabledMaxHeightRatio: 0.9,
    builder: (context) => PointerInterceptor(
      child: BlocProvider(
        create: (context) => PageCubit(
          const PageState(
            isPage: true,
            nodes: [],
            fit: ComponentFit.absolute,
          ),
          getIt(),
        ),
        child: context.getPage(action.componentID),
      ),
    ),
  );
  return;
}