getWidget static method
Widget
getWidget(
- AppModel app,
- BuildContext context,
- PostModel model,
- EditorFeedback editorFeedback, {
- AddMediaHtml? addMediaHtml,
Implementation
static Widget getWidget(
AppModel app,
BuildContext context,
PostModel model,
EditorFeedback editorFeedback, {
AddMediaHtml? addMediaHtml,
}) {
return PointerInterceptor(
child: BlocProvider<HtmlPostMediumBloc>(
create: (context) => HtmlPostMediumBloc(
app.documentID,
)..add(ExtEditorBaseInitialise<PostModel>(model,
reretrieveModel: false)),
child: PostWithMemberMediumComponents._(
app: app,
addMediaHtml: addMediaHtml,
editorFeedback: editorFeedback,
)));
}