slideTextPostUI method

dynamic slideTextPostUI(
  1. dynamic context
)

Implementation

Widget slideTextPostUI(BuildContext context) {
  return GestureDetector(
    onTap: () => SystemChannels.textInput.invokeMethod('TextInput.hide'),
    child: Container(
      padding: const EdgeInsets.all(20),
      alignment: Alignment.center,
      color: selectedNewsPost?.backgroundColor,
      child: SingleChildScrollView(
        child: IntrinsicHeight(
          child: HtmlEditor(
            key: NewsUpdateKeys.textSlideInputField,
            editorState: textEditorState,
            editable: true,
            autoFocus: false,
            // we manage the auto focus manually
            shrinkWrap: true,
            onChanged: (body, html) {
              ref
                  .read(newsStateProvider.notifier)
                  .changeTextSlideValue(body, html);
            },
          ),
        ),
      ),
    ),
  );
}