getWidget static method

Widget getWidget(
  1. AppModel app,
  2. BuildContext context,
  3. PostModel model,
  4. EditorFeedback editorFeedback, {
  5. 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,
          )));
}