Remove reference to the quill provider

pull/1594/head
Ellet 1 year ago
parent 15d963fed1
commit 8b4b90e398
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 1
      README.md
  2. 31
      flutter_quill_extensions/README.md

@ -127,7 +127,6 @@ QuillController _controller = QuillController.basic();
And then use the `QuillEditor`, `QuillToolbar` widgets, And then use the `QuillEditor`, `QuillToolbar` widgets,
connect the `QuillController` to them connect the `QuillController` to them
using `QuillProvider` inherited widget
```dart ```dart
QuillToolbar.simple( QuillToolbar.simple(

@ -93,37 +93,6 @@ Expanded(
) )
``` ```
They both should have a parent `QuillProvider` in the widget tree and set properly <br>
Example:
```dart
QuillProvider(
configurations: QuillConfigurations(
controller: _controller,
sharedConfigurations: const QuillSharedConfigurations(),
),
child: Column(
children: [
QuillToolbar(
configurations: QuillToolbarConfigurations(
embedButtons: FlutterQuillEmbeds.toolbarButtons(
imageButtonOptions: QuillToolbarImageButtonOptions(),
),
),
),
Expanded(
child: QuillEditor.basic(
configurations: QuillEditorConfigurations(
padding: const EdgeInsets.all(16),
embedBuilders: kIsWeb ? FlutterQuillEmbeds.editorWebBuilders() : FlutterQuillEmbeds.editorBuilders(),
),
),
)
],
),
)
```
## Embed Blocks ## Embed Blocks
As of version [flutter_quill](https://pub.dev/packages/flutter_quill) 6.0, embed blocks are not provided by default as part of Flutter quill. Instead, it provides an interface for all the users to provide their implementations for embed blocks. Implementations for image, video, and formula embed blocks are proved in this package As of version [flutter_quill](https://pub.dev/packages/flutter_quill) 6.0, embed blocks are not provided by default as part of Flutter quill. Instead, it provides an interface for all the users to provide their implementations for embed blocks. Implementations for image, video, and formula embed blocks are proved in this package

Loading…
Cancel
Save