diff --git a/lib/src/widgets/toolbar.dart b/lib/src/widgets/toolbar.dart index 981d7196..35da0bfb 100644 --- a/lib/src/widgets/toolbar.dart +++ b/lib/src/widgets/toolbar.dart @@ -199,7 +199,15 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget { ], onSelected: (newSize) { controller.formatSelection( - Attribute.fromKeyValue('size', getFontSize(newSize))); + if (newSize == '0') { + controller.formatSelection( + Attribute.fromKeyValue('size', null)); + } + else + { + controller.formatSelection( + Attribute.fromKeyValue('size', getFontSize(newSize))); + } }, rawItemsMap: fontSizes, ),