singerdmx / flutter-quill

Rich text editor for Flutter

Home Page:https://pub.dev/packages/flutter_quill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

read only not found in QuillEditorConfigurations

the-best-is-best opened this issue · comments

Is there an existing issue for this?

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