Upgrade to 2.0.18

pull/469/head
Cheryl 3 years ago
parent ce054fabdf
commit 7c7ab448e3
  1. 3
      CHANGELOG.md
  2. 13
      lib/src/widgets/toolbar.dart
  3. 2
      pubspec.yaml

@ -1,3 +1,6 @@
## [2.0.18]
* Make toolbar dividers optional.
## [2.0.17] ## [2.0.17]
* Allow alignment of the toolbar icons to match WrapAlignment. * Allow alignment of the toolbar icons to match WrapAlignment.

@ -281,7 +281,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
webVideoPickImpl: webVideoPickImpl, webVideoPickImpl: webVideoPickImpl,
iconTheme: iconTheme, iconTheme: iconTheme,
), ),
if (showDividers && isButtonGroupShown[0] && if (showDividers &&
isButtonGroupShown[0] &&
(isButtonGroupShown[1] || (isButtonGroupShown[1] ||
isButtonGroupShown[2] || isButtonGroupShown[2] ||
isButtonGroupShown[3] || isButtonGroupShown[3] ||
@ -302,7 +303,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
showRightAlignment: showRightAlignment, showRightAlignment: showRightAlignment,
showJustifyAlignment: showJustifyAlignment, showJustifyAlignment: showJustifyAlignment,
), ),
if (showDividers && isButtonGroupShown[1] && if (showDividers &&
isButtonGroupShown[1] &&
(isButtonGroupShown[2] || (isButtonGroupShown[2] ||
isButtonGroupShown[3] || isButtonGroupShown[3] ||
isButtonGroupShown[4] || isButtonGroupShown[4] ||
@ -318,7 +320,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
iconSize: toolbarIconSize, iconSize: toolbarIconSize,
iconTheme: iconTheme, iconTheme: iconTheme,
), ),
if (showDividers && showHeaderStyle && isButtonGroupShown[2] && if (showDividers &&
showHeaderStyle &&
isButtonGroupShown[2] &&
(isButtonGroupShown[3] || (isButtonGroupShown[3] ||
isButtonGroupShown[4] || isButtonGroupShown[4] ||
isButtonGroupShown[5])) isButtonGroupShown[5]))
@ -359,7 +363,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
iconSize: toolbarIconSize, iconSize: toolbarIconSize,
iconTheme: iconTheme, iconTheme: iconTheme,
), ),
if (showDividers && isButtonGroupShown[3] && if (showDividers &&
isButtonGroupShown[3] &&
(isButtonGroupShown[4] || isButtonGroupShown[5])) (isButtonGroupShown[4] || isButtonGroupShown[5]))
VerticalDivider( VerticalDivider(
indent: 12, indent: 12,

@ -1,6 +1,6 @@
name: flutter_quill name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 2.0.17 version: 2.0.18
#author: bulletjournal #author: bulletjournal
homepage: https://bulletjournal.us/home/index.html homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save