|
|
@ -418,7 +418,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
final List<Widget> children; |
|
|
|
final List<Widget> children; |
|
|
|
final double toolBarHeight; |
|
|
|
final double toolBarHeight; |
|
|
|
final double? toolBarSectionSpacing; |
|
|
|
final double? toolBarSectionSpacing; |
|
|
|
final ToolbarAlignment? toolBarIconAlignment; |
|
|
|
final ToolbarAlignment toolBarIconAlignment; |
|
|
|
final bool? multiRowsDisplay; |
|
|
|
final bool? multiRowsDisplay; |
|
|
|
|
|
|
|
|
|
|
|
/// The color of the toolbar. |
|
|
|
/// The color of the toolbar. |
|
|
@ -439,7 +439,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Size get preferredSize => Size.fromHeight(toolBarHeight); |
|
|
|
Size get preferredSize => Size.fromHeight(toolBarHeight); |
|
|
|
ToolbarAlignment get toolBarIconAlignment2 => toolBarIconAlignment; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
Widget build(BuildContext context) { |
|
|
@ -448,11 +447,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { |
|
|
|
child: multiRowsDisplay ?? true |
|
|
|
child: multiRowsDisplay ?? true |
|
|
|
? Wrap( |
|
|
|
? Wrap( |
|
|
|
alignment: |
|
|
|
alignment: |
|
|
|
(toolBarIconAlignment2==ToolbarAlignment.left) |
|
|
|
(toolBarIconAlignment==ToolbarAlignment.left) |
|
|
|
? WrapAlignment.left |
|
|
|
? WrapAlignment.left |
|
|
|
:(toolBarIconAlignment2==ToolbarAlignment.center) |
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.center) |
|
|
|
? WrapAlignment.center |
|
|
|
? WrapAlignment.center |
|
|
|
:(toolBarIconAlignment2==ToolbarAlignment.right) |
|
|
|
:(toolBarIconAlignment==ToolbarAlignment.right) |
|
|
|
? WrapAlignment.right : WrapAlignment.center, |
|
|
|
? WrapAlignment.right : WrapAlignment.center, |
|
|
|
runSpacing: 4, |
|
|
|
runSpacing: 4, |
|
|
|
spacing: toolBarSectionSpacing ?? 4, |
|
|
|
spacing: toolBarSectionSpacing ?? 4, |
|
|
|