Code cleanup

pull/821/head
X Code 3 years ago
parent 5e39e5b2be
commit b401cc5518
  1. 9
      lib/src/widgets/toolbar.dart

@ -198,13 +198,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
),
],
onSelected: (newSize) {
if (newSize == '0') {
controller
.formatSelection(Attribute.fromKeyValue('size', null));
} else {
controller.formatSelection(
Attribute.fromKeyValue('size', getFontSize(newSize)));
}
controller.formatSelection(Attribute.fromKeyValue(
'size', newSize == '0' ? null : getFontSize(newSize)));
},
rawItemsMap: fontSizes,
),

Loading…
Cancel
Save