@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
## 9.0.2-dev
* **Breaking change** Remove the spacer widget, removed the controller option for each button
* Add `toolbarRunSpacing` property to the simple toolbar
## 9.0.1
* Fix default icon size
@ -100,14 +100,7 @@ class MyQuillToolbar extends StatelessWidget {
// For more info
// https://github.com/singerdmx/flutter-quill/blob/master/doc/custom_toolbar.md
return QuillToolbar(
configurations: const QuillToolbarConfigurations(
buttonOptions: QuillToolbarButtonOptions(
base: QuillToolbarBaseButtonOptions(
globalIconSize: 20,
globalIconButtonFactor: 1.4,
),
configurations: const QuillToolbarConfigurations(),
child: SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: Wrap(
@ -21,11 +21,13 @@ abstract class QuillSharedToolbarProperties extends Equatable {
this.multiRowsDisplay = true,
this.decoration,
this.buttonOptions = const QuillToolbarButtonOptions(),
this.toolbarRunSpacing = 4,
});
final Axis axis;
final double toolbarSectionSpacing;
final WrapAlignment toolbarIconAlignment;
final WrapCrossAlignment toolbarIconCrossAlignment;
final double toolbarRunSpacing;
final double? toolbarSize;
// Overrides the action in the _LinkDialog widget
@ -329,7 +329,7 @@ class QuillSimpleToolbar extends StatelessWidget
direction: configurations.axis,
alignment: configurations.toolbarIconAlignment,
crossAxisAlignment: configurations.toolbarIconCrossAlignment,
runSpacing: 4,
runSpacing: configurations.toolbarRunSpacing,
spacing: configurations.toolbarSectionSpacing,
children: childrenBuilder(context),
);