Update toolbar.dart

pull/817/head
mark8044 3 years ago committed by GitHub
parent 7e9f9961e0
commit 9225ca00e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      lib/src/widgets/toolbar.dart

@ -199,11 +199,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
], ],
onSelected: (newSize) { onSelected: (newSize) {
if (newSize == '0') { if (newSize == '0') {
controller.formatSelection( controller
Attribute.fromKeyValue('size', null)); .formatSelection(Attribute.fromKeyValue('size', null));
} } else {
else
{
controller.formatSelection( controller.formatSelection(
Attribute.fromKeyValue('size', getFontSize(newSize))); Attribute.fromKeyValue('size', getFontSize(newSize)));
} }

Loading…
Cancel
Save