quill_html_editor
quill_html_editor copied to clipboard
[BUG] How to change range selection text
Describe the bug editor can't move range selection text. Lib quill_html_editor: ^2.2.6
Smartphone (please complete the following information):
- Device: simulator iphone 15 pro max
- OS: 17.0.1
Code sample
SingleChildScrollView(
child: QuillHtmlEditor(
text: "",
hintText: 'Hint text goes here',
controller: widget.controller,
isEnabled: true,
ensureVisible: true,
minHeight: 200,
autoFocus: true,
textStyle: _editorTextStyle,
hintTextStyle: _hintTextStyle,
hintTextAlign: TextAlign.start,
padding: const EdgeInsets.only(left: 10, top: 10),
hintTextPadding: const EdgeInsets.only(left: 20),
backgroundColor: _backgroundColor,
inputAction: InputAction.newline,
onEditingComplete: (s) => debugPrint('Editing completed $s'),
loadingBuilder: (context) {
return const Center(
child: CircularProgressIndicator(
strokeWidth: 1,
color: Colors.red,
));
},
onFocusChanged: (focus) {
debugPrint('has focus $focus');
setState(() {
_hasFocus = focus;
});
},
onTextChanged: (text) => debugPrint('widget text change $text'),
onEditorCreated: () {
debugPrint('Editor has been loaded');
setHtmlText('');
},
onEditorResized: (height) =>
debugPrint('Editor resized $height'),
onSelectionChanged: (sel) =>
debugPrint('index ${sel.index}, range ${sel.length}'),
),
)
! Doctor found issues in 1 category. Video demo
https://github.com/the-airbender/quill_html_editor/assets/5988428/c9e8565a-ae8c-4159-b59b-31f4bdd4fb8a
When focus to editor I need disable : physics: NeverScrollableScrollPhysics() when unfocus need set physics: AlwaysScrollableScrollPhysics(). But unfocus and focus work not exactly. I need check show or dismiss key board to set physics for SingleChildScrollView
Hello @antonydieu,
Could you please try it on a physical device and confirm if the issue exists?
Thanks :)
@the-airbender This issue persist on real device. Especially on iOS.
@the-airbender I can also confirm this issue persists on physical iOS device.
quill_html_editor: ^2.2.8
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (3 weeks ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
This impacts the core functionality of the editor. Is there any hack/trick we can use in the meantime?