|
|
|
@ -439,7 +439,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Size get preferredSize => Size.fromHeight(toolBarHeight); |
|
|
|
|
Map<ToolbarAlignment, WrapAlignment> alignmentMap = {ToolbarAlignment.center: WrapAlignment.center}; |
|
|
|
|
|
|
|
|
|
@override |
|
|
|
|
Widget build(BuildContext context) { |
|
|
|
@ -447,13 +446,13 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
|
initialLocale: locale, |
|
|
|
|
child: multiRowsDisplay ?? true |
|
|
|
|
? Wrap( |
|
|
|
|
alignment: alignmentMap, |
|
|
|
|
// (toolBarIconAlignment==ToolbarAlignment.left) |
|
|
|
|
// ? WrapAlignment.left |
|
|
|
|
// :(toolBarIconAlignment==ToolbarAlignment.center) |
|
|
|
|
// ? WrapAlignment.center |
|
|
|
|
// :(toolBarIconAlignment==ToolbarAlignment.right) |
|
|
|
|
// ? WrapAlignment.right : WrapAlignment.center, |
|
|
|
|
alignment: |
|
|
|
|
(toolBarIconAlignment==ToolbarAlignment.left) |
|
|
|
|
? WrapAlignment.left |
|
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.center) |
|
|
|
|
? WrapAlignment.center |
|
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.right) |
|
|
|
|
? WrapAlignment.right : WrapAlignment.center, |
|
|
|
|
runSpacing: 4, |
|
|
|
|
spacing: toolBarSectionSpacing ?? 4, |
|
|
|
|
children: children, |
|
|
|
|