fix(docs): update outdated code in markdown files

pull/1954/head
Ellet 10 months ago
parent 5d9ad020c7
commit 5fc6d34d10
  1. 4
      doc/configurations/custom_buttons.md
  2. 4
      doc/custom_toolbar.md

@ -17,8 +17,8 @@ To add an Icon, we should use a new `QuillToolbarCustomButtonOptions` class
Each `QuillCustomButton` is used as part of the `customButtons` option as follows:
```dart
QuillToolbar(
configurations: QuillToolbarConfigurations(
QuillToolbar.simple(
configurations: QuillSimpleToolbarConfigurations(
customButtons: [
QuillToolbarCustomButtonOptions(
icon: const Icon(Icons.ac_unit),

@ -6,8 +6,8 @@ You can use the `QuillBaseToolbar` which is the base for the `QuillToolbar`
Example:
```dart
QuillToolbar(
configurations: const QuillToolbarConfigurations(
QuillToolbar.simple(
configurations: const QuillSimpleToolbarConfigurations(
buttonOptions: QuillToolbarButtonOptions(
base: QuillToolbarBaseButtonOptions(
globalIconSize: 20,

Loading…
Cancel
Save