diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 116fec04..a4ad5c1e 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -49,6 +49,8 @@ typedef WebVideoPickImpl = Future Function( typedef MediaPickSettingSelector = Future Function( BuildContext context); +enum ToolbarAlignment{ left, center, right } + // The default size of the icon of a button. const double kDefaultIconSize = 18; @@ -72,7 +74,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { required QuillController controller, double toolbarIconSize = kDefaultIconSize, double toolBarSectionSpacing = 4, - WrapAlignment toolBarIconAlignment = WrapAlignment, + ToolbarAlignment toolBarIconAlignment = ToolbarAlignment.center, bool showBoldButton = true, bool showItalicButton = true, bool showSmallButton = false, @@ -415,7 +417,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { final List children; final double toolBarHeight; final double? toolBarSectionSpacing; - final WrapAlignment? toolBarIconAlignment; + final toolBarIconAlignment? toolBarIconAlignment; final bool? multiRowsDisplay; /// The color of the toolbar.