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) {
if (newSize == '0') {
controller.formatSelection(
Attribute.fromKeyValue('size', null));
}
else
{
controller
.formatSelection(Attribute.fromKeyValue('size', null));
} else {
controller.formatSelection(
Attribute.fromKeyValue('size', getFontSize(newSize)));
}

Loading…
Cancel
Save