showCDialog method
Implementation
Future<void> showCDialog(
ShowDialogAction action,
BuildContext context,
) async {
await showDialog(
context: context,
useRootNavigator: false,
builder: (context) => BlocProvider(
create: (_) => PageCubit(
const PageState(
isPage: true,
nodes: [],
fit: ComponentFit.absolute,
),
getIt(),
),
child: AlertDialog(
contentPadding: EdgeInsets.zero,
content: SizedBox(
width: double.maxFinite,
height: double.maxFinite,
child: context.getPage(action.componentID),
),
),
),
);
return;
}