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

QuillEditorConfigurations: Error: No named parameter with the name 'readOnly' #1845

Open
1 task done
maxfornacon opened this issue May 3, 2024 · 5 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@maxfornacon
Copy link

Is there an existing issue for this?

Flutter Quill version

9.3.10

Steps to reproduce

Upgrade to version 9.3.10 from 9.3.9

Expected results

Since no breaking change is mentioned in changelog I wouldn't expect anything to break.

Actual results

It throws an error Error: No named parameter with the name 'readOnly'.

Code sample

Code sample
QuillEditorConfigurations(
   controller: _controller,
    readOnly: false,
    sharedConfigurations: const QuillSharedConfigurations(
      locale: Locale('de'),
     ),
),

Screenshots or Video

No response

Logs

No response

@maxfornacon maxfornacon added the bug Something isn't working label May 3, 2024
@kairan77
Copy link

kairan77 commented May 5, 2024

the setting moved from configuration to controller, now you can set your readonly state in the controller

@MagnoDaza
Copy link

the setting moved from configuration to controller, now you can set your readonly state in the controller

can you show an example code, please

@AtlasAutocode
Copy link
Contributor

Code is shown in the example application
quill_screen.dart Line 62:
_controller.readOnly = _isReadOnly;

Originally was set in QuillEditorConfigurations( readOnly: _isReadOnly (quill_screen.dart line 150-ish)

@maxfornacon
Copy link
Author

Code is shown in the example application

The readme should be updated too.

Changes like this should be announced by being marked as deprecated and should be mentioned in the changelog.

@amorenew
Copy link

You don’t need to do anything as the default is false now in the controller
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants