From 0dedb1c805c90ed2c13dd5915982b3df3ac13cdc Mon Sep 17 00:00:00 2001
From: Cheryl <xinyuezhang0402@gmail.com>
Date: Sun, 14 Nov 2021 21:32:47 -0800
Subject: [PATCH] Upgrade to 2.0.17

---
 CHANGELOG.md                 |  7 +++++--
 lib/src/widgets/toolbar.dart | 14 +++++++-------
 pubspec.yaml                 |  2 +-
 3 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c61d60eb..4ece66e4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,11 +1,14 @@
+## [2.0.17]
+* Allow alignment of the toolbar icons to match WrapAlignment.
+
 ## [2.0.16]
 * Add hide / show alignment buttons.
 
 ## [2.0.15]
-* implement change cursor to SystemMouseCursors.click when hovering a link styled text.
+* Implement change cursor to SystemMouseCursors.click when hovering a link styled text.
 
 ## [2.0.14]
-* enable customize the checkbox widget using DefaultListBlockStyle style.
+* Enable customize the checkbox widget using DefaultListBlockStyle style.
 
 ## [2.0.13]
 * Improve the scrolling performance by reducing the repaint areas.
diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart
index 80269eef..2e5899d6 100644
--- a/lib/src/widgets/toolbar.dart
+++ b/lib/src/widgets/toolbar.dart
@@ -49,7 +49,7 @@ typedef WebVideoPickImpl = Future<String?> Function(
 typedef MediaPickSettingSelector = Future<MediaPickSetting?> Function(
     BuildContext context);
 
-enum ToolbarAlignment{ start, center, end }
+enum ToolbarAlignment { start, center, end }
 
 // The default size of the icon of a button.
 const double kDefaultIconSize = 18;
@@ -446,13 +446,13 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
       initialLocale: locale,
       child: multiRowsDisplay ?? true
           ? Wrap(
-              alignment: 
-              (toolBarIconAlignment==ToolbarAlignment.start)
+              alignment: (toolBarIconAlignment == ToolbarAlignment.start)
                   ? WrapAlignment.start
-                  :(toolBarIconAlignment==ToolbarAlignment.center)
-                  ? WrapAlignment.center
-                  :(toolBarIconAlignment==ToolbarAlignment.end)
-                  ? WrapAlignment.end :  WrapAlignment.center,
+                  : (toolBarIconAlignment == ToolbarAlignment.center)
+                      ? WrapAlignment.center
+                      : (toolBarIconAlignment == ToolbarAlignment.end)
+                          ? WrapAlignment.end
+                          : WrapAlignment.center,
               runSpacing: 4,
               spacing: toolBarSectionSpacing ?? 4,
               children: children,
diff --git a/pubspec.yaml b/pubspec.yaml
index f21ef84c..5da40094 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 name: flutter_quill
 description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
-version: 2.0.16
+version: 2.0.17
 #author: bulletjournal
 homepage: https://bulletjournal.us/home/index.html
 repository: https://github.com/singerdmx/flutter-quill