Update toolbar.dart

pull/462/head
mark8044 4 years ago committed by GitHub
parent 54b4782346
commit cf9cf6f3ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      lib/src/widgets/toolbar.dart

@ -445,7 +445,10 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
initialLocale: locale, initialLocale: locale,
child: multiRowsDisplay ?? true child: multiRowsDisplay ?? true
? Wrap( ? Wrap(
alignment: toolBarIconAlignment ?? WrapAlignment.center, alignment: (toolBarIconAlignment == ToolbarAlignment.left)
? WrapAlignment.left
: (toolBarIconAlignment == ToolbarAlignment.right)
? WrapAlignment.right : WrapAlignment.center
runSpacing: 4, runSpacing: 4,
spacing: toolBarSectionSpacing ?? 4, spacing: toolBarSectionSpacing ?? 4,
children: children, children: children,

Loading…
Cancel
Save