From 0f6a5051dd1b7e945b132c8a2b6b806b4dc92183 Mon Sep 17 00:00:00 2001 From: Ahmed Hnewa <73608287+freshtechtips@users.noreply.github.com> Date: Mon, 23 Oct 2023 18:47:34 +0300 Subject: [PATCH] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 47113f46..692d8e10 100644 --- a/README.md +++ b/README.md @@ -85,15 +85,18 @@ and then embed the toolbar and the editor, within your app. For example: ```dart QuillProvider( - configurations: QuillConfigurations(controller: _controller), + configurations: QuillConfigurations( + controller: _controller, + editorConfigurations: QuillEditorConfigurations( + readOnly: _isReadonly, + ), +), child: Column( children: [ QuillToolbar.basic(), Expanded( child: Container( - child: QuillEditor.basic( - readOnly: false, // true for view only mode - ), + child: QuillEditor.basic(), ), ) ],