Update toolbar.dart

pull/462/head
mark8044 4 years ago committed by GitHub
parent 34db40aff4
commit 21eb5bba56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      lib/src/widgets/toolbar.dart

@ -439,7 +439,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
@override
Size get preferredSize => Size.fromHeight(toolBarHeight);
Size get toolBarIconAlignment2 => toolBarIconAlignment;
@override
Widget build(BuildContext context) {
return I18n(
@ -447,11 +448,11 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
child: multiRowsDisplay ?? true
? Wrap(
alignment:
(toolBarIconAlignment==ToolbarAlignment.left)
(toolBarIconAlignment2==ToolbarAlignment.left)
? WrapAlignment.left
:(toolBarIconAlignment==ToolbarAlignment.center)
:(toolBarIconAlignment2==ToolbarAlignment.center)
? WrapAlignment.center
:(toolBarIconAlignment==ToolbarAlignment.right)
:(toolBarIconAlignment2==ToolbarAlignment.right)
? WrapAlignment.right : WrapAlignment.center,
runSpacing: 4,
spacing: toolBarSectionSpacing ?? 4,

Loading…
Cancel
Save