Skip to content

Commit 7c7ab44

Browse files
Upgrade to 2.0.18
1 parent ce054fa commit 7c7ab44

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [2.0.18]
2+
* Make toolbar dividers optional.
3+
14
## [2.0.17]
25
* Allow alignment of the toolbar icons to match WrapAlignment.
36

lib/src/widgets/toolbar.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
281281
webVideoPickImpl: webVideoPickImpl,
282282
iconTheme: iconTheme,
283283
),
284-
if (showDividers && isButtonGroupShown[0] &&
284+
if (showDividers &&
285+
isButtonGroupShown[0] &&
285286
(isButtonGroupShown[1] ||
286287
isButtonGroupShown[2] ||
287288
isButtonGroupShown[3] ||
@@ -302,7 +303,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
302303
showRightAlignment: showRightAlignment,
303304
showJustifyAlignment: showJustifyAlignment,
304305
),
305-
if (showDividers && isButtonGroupShown[1] &&
306+
if (showDividers &&
307+
isButtonGroupShown[1] &&
306308
(isButtonGroupShown[2] ||
307309
isButtonGroupShown[3] ||
308310
isButtonGroupShown[4] ||
@@ -318,7 +320,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
318320
iconSize: toolbarIconSize,
319321
iconTheme: iconTheme,
320322
),
321-
if (showDividers && showHeaderStyle && isButtonGroupShown[2] &&
323+
if (showDividers &&
324+
showHeaderStyle &&
325+
isButtonGroupShown[2] &&
322326
(isButtonGroupShown[3] ||
323327
isButtonGroupShown[4] ||
324328
isButtonGroupShown[5]))
@@ -359,7 +363,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
359363
iconSize: toolbarIconSize,
360364
iconTheme: iconTheme,
361365
),
362-
if (showDividers && isButtonGroupShown[3] &&
366+
if (showDividers &&
367+
isButtonGroupShown[3] &&
363368
(isButtonGroupShown[4] || isButtonGroupShown[5]))
364369
VerticalDivider(
365370
indent: 12,

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_quill
22
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
3-
version: 2.0.17
3+
version: 2.0.18
44
#author: bulletjournal
55
homepage: https://bulletjournal.us/home/index.html
66
repository: https://github.com/singerdmx/flutter-quill

0 commit comments

Comments
 (0)