Skip to content

Ability to execute code on click #927

@hatch01

Description

@hatch01

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions