flutter-quill
flutter-quill copied to clipboard
read only not found in QuillEditorConfigurations
Is there an existing issue for this?
- [X] I have searched the existing issues
Flutter Quill version
9.3.11
Steps to reproduce
nun
Expected results
nun
Actual results
nun
Code sample
QuillEditor.basic( configurations: QuillEditorConfigurations( controller: widget.controller ?? QuillController.basic(),
readOnly: !widget.edit,
scrollable: true,
autoFocus: false,
showCursor: widget.edit,
expands: false,
// maxHeight: MediaQuery.of(context).size.height * 0.25,
padding: EdgeInsets.zero,
sharedConfigurations: const QuillSharedConfigurations(
locale: Locale('ar'),
),
),
)
Screenshots or Video
No response
Logs
No response
Update a litte in your code:
QuillEditor.basic(
configurations: QuillEditorConfigurations(
controller: widget.controller ?? QuillController(
readOnly: !widget.edit, // <= Migrate to this
),
scrollable: true,
autoFocus: false,
showCursor: widget.edit,
expands: false,
// maxHeight: MediaQuery.of(context).size.height * 0.25,
padding: EdgeInsets.zero,
sharedConfigurations: const QuillSharedConfigurations(
locale: Locale('ar'),
),
),
It made more sense before, why the (breaking) change?
It made more sense before, why the (breaking) change?
I don't know :))
This is indeed a breaking change and it's not even mentioned inside the release notes :D
@the-best-is-best Please mark done for this issue