Update toolbar.dart

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

@ -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,

Loading…
Cancel
Save