You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
customRecognizerBuilder: (Attribute attribute, Leaf leaf) {
// We are not using default long press context menu for handling the links
return TapGestureRecognizer()
..onTap = () {
if (attribute.key == Attribute.link.key) {
launchUrlFromQuill(context, attribute.value.toString());
}
};
},
Every link should trigger TapGestureRecognizer defined in customRecognizerBuilder. In bullets it does't trigger it - only long press works in that case.
Actual results
TapGestureRecognizer defined as customRecognizerBuilder is not being triggered when it is in bullet list - in that case only long press on link works.
Code sample
Code sample
QuillEditor(
focusNode:FocusNode(canRequestFocus:false),
scrollController:ScrollController(),
configurations:QuillEditorConfigurations(
controller: _quillController,
scrollable:true,
padding:EdgeInsets.zero,
autoFocus:false,
checkBoxReadOnly:true,
showCursor:false,
expands:false,
customRecognizerBuilder: (Attribute attribute, Leaf leaf) {
// We are not using default long press context menu for handling the linksreturnTapGestureRecognizer()
..onTap = () {
if (attribute.key ==Attribute.link.key) {
launchUrlFromQuill(context, attribute.value.toString());
}
};
},
onLaunchUrl: (link) =>launchUrlFromQuill(context, link),
),
),
Screenshots or Video
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Flutter Quill version
9.4.2
Steps to reproduce
Add customRecognizerBuilder to the QuillEditor:
This is text used to test:
Expected results
Every link should trigger TapGestureRecognizer defined in customRecognizerBuilder. In bullets it does't trigger it - only long press works in that case.
Actual results
TapGestureRecognizer defined as customRecognizerBuilder is not being triggered when it is in bullet list - in that case only long press on link works.
Code sample
Code sample
Screenshots or Video
No response
Logs
No response
The text was updated successfully, but these errors were encountered: