html-editor-enhanced icon indicating copy to clipboard operation
html-editor-enhanced copied to clipboard

[BUG] no text is showing when typing in the editor android

Open GameDevBhavesh opened this issue 2 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior i have setup the package and editor shown in the usage section everything is working except i cannot see text when writing in the editor its not taking account typing i can upload image or other attachments

Code

import 'package:flutter/material.dart';
import 'package:html_editor_enhanced/html_editor.dart';

class HtmlTextEditor extends StatefulWidget {
  HtmlTextEditor({Key key, this.height, this.width, this.initial, this.hint})
      : super(key: key);

  final double height;
  final double width;
  final String initial;
  final String hint;

  @override
  _HtmlEditorWidgetState createState() => _HtmlEditorWidgetState();
}

class _HtmlEditorWidgetState extends State<HtmlTextEditor> {
  HtmlEditorController controller =
      HtmlEditorController(processInputHtml: true);

  @override
  Widget build(BuildContext context) {
    return HtmlEditor(
        controller: controller, //required
        htmlEditorOptions: HtmlEditorOptions(
          hint: widget.hint,
          initialText: widget.initial,
        ),
        htmlToolbarOptions:
            HtmlToolbarOptions(defaultToolbarButtons: [StyleButtons()]),
        otherOptions: OtherOptions(height: widget.height));
  }
}

Device: realmex2pro

Additional context i have not initialized other attributes like colors then shown in the usage

GameDevBhavesh avatar Jul 19 '22 06:07 GameDevBhavesh