read only not found in QuillEditorConfigurations
the-best-is-best opened this issue · comments
Michelle Raouf commented
Is there an existing issue for this?
- 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
Phạm Hoàng Sang commented
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'),
),
),
apoleo88 commented
It made more sense before, why the (breaking) change?
Phạm Hoàng Sang commented
It made more sense before, why the (breaking) change?
I don't know :))
Felix Mittermeier commented
This is indeed a breaking change and it's not even mentioned inside the release notes :D
Phạm Hoàng Sang commented
@the-best-is-best Please mark done for this issue