From 9388221a413151a4bdc292d37385c4c003a42997 Mon Sep 17 00:00:00 2001 From: mark8044 <87546778+mark8044@users.noreply.github.com> Date: Fri, 6 May 2022 14:23:47 -0700 Subject: [PATCH] Update toolbar.dart --- lib/src/widgets/toolbar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index a53bae78..65cdadcf 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -202,7 +202,7 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { ), ], onSelected: (newSize) { - if (newSize != null) { + if (newSize != null) && (newSize > 0) { controller .formatSelection(Attribute.fromKeyValue('size', newSize)); }