Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change the mouse hover cursor for readOnly mode? #1935

Open
1 task done
geronimol opened this issue Jun 20, 2024 · 2 comments
Open
1 task done

How to change the mouse hover cursor for readOnly mode? #1935

geronimol opened this issue Jun 20, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@geronimol
Copy link
Contributor

Is there an existing issue for this?

The question

Tried this on Web and MacOS using flutter_quill 9.4.4, but didn't work for me.

Am I doing something wrong?

_controller = QuillController(
        document: delta,
        selection: const TextSelection.collapsed(offset: 0),
        readOnly: true,
      );
return QuillEditor.basic(
      configurations: QuillEditorConfigurations(
        controller: _controller,
        scrollable: false,
        enableInteractiveSelection: false,
        readOnlyMouseCursor: SystemMouseCursors.grab,
      ),
    );
@geronimol geronimol added the help wanted Extra attention is needed label Jun 20, 2024
@CatHood0
Copy link
Collaborator

If you want to change from the controllerthen just try:

_controller.readOnly = true; //or false if you need it

This will change readOnly mode for your editor

@geronimol
Copy link
Contributor Author

If you want to change from the controllerthen just try:

_controller.readOnly = true; //or false if you need it

This will change readOnly mode for your editor

I am asking how to change the mouse cursor for when you hover the text in readOnly mode. Please check the above code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants