Ability to execute code on click #944
Unanswered
hatch01
asked this question in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey I will firstly explain my need.
I want to create an note app which include grammar correction.
For this, when I detect an error in the sentence, I want to make the error clickable and underlined in red.
When someone click on this word or couple of word, a pop-up propose some correction that the user can choose.
I tried simply to add a customblock with a simple text widget inside a gesturedetector but I loose the previous style like fontsize, color...
So this solution seems not really clean.
My proposition is to use the package flutter_eval and to add in the link functionality, the ability to put dart code inside the link (as string)and execute the code when we click on it with the help of flutter_eval.
However it make the document only usable on flutter and the advantage of the quill format that can be readen outside is loosed.
Do someone have a better idea or validate my proposition with flutter_eval?
Beta Was this translation helpful? Give feedback.
All reactions