flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

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

Open maxfornacon opened this issue 1 year ago • 5 comments

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 avatar May 03 '24 16:05 maxfornacon

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

kairan77 avatar May 05 '24 05:05 kairan77

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

can you show an example code, please

MagnoDaza avatar May 05 '24 15:05 MagnoDaza

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)

AtlasAutocode avatar May 05 '24 22:05 AtlasAutocode

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.

maxfornacon avatar May 06 '24 14:05 maxfornacon

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

amorenew avatar May 22 '24 08:05 amorenew