html-editor-enhanced
html-editor-enhanced copied to clipboard
[BUG] no text is showing when typing in the editor android
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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