createDecoratedBodyComponent method
CreateWidget
createDecoratedBodyComponent(
- AppModel app,
- BuildContext context,
- Key? originalBodyComponentKey,
- CreateWidget bodyComponent,
- BodyComponentModel model,
override
Implementation
@override
CreateWidget createDecoratedBodyComponent(
AppModel app,
BuildContext context,
Key? originalBodyComponentKey,
CreateWidget bodyComponent,
BodyComponentModel model) {
if (!AccessBloc.isOwner(context, app)) return bodyComponent;
return (() {
return MyDecoratedWidget(
isCreationMode: _isCreationMode,
originalWidgetKey: originalBodyComponentKey,
createOriginalWidget: bodyComponent,
action: SingleAction(() {
updateComponent(context, app, model.componentName, model.componentId,
(status, value) {});
}),
ensureHeight: true,
initialPosition: InitialPosition.leftTop,
label: '${model.componentName!} [${model.componentId!}]',
);
});
}