Update toolbar.dart

pull/794/head
mark8044 3 years ago committed by GitHub
parent f91ad4d4b1
commit b83220986a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      lib/src/widgets/toolbar.dart

@ -196,8 +196,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
.formatSelection(Attribute.fromKeyValue('size', newSize)); .formatSelection(Attribute.fromKeyValue('size', newSize));
} }
}, },
initialValue: fontSizes.values.toList()[initialFontSizeValue ?? 0], rawitemslist: fontSizes,
initialValueTitle: fontSizes.keys.toList()[initialFontSizeValue ?? 0] initialValue: (initialFontSizeValue != null) && (initialFontSizeValue <= fontSizes.length - 1) ? initialFontSizeValue : 0,
), ),
if (showBoldButton) if (showBoldButton)
ToggleStyleButton( ToggleStyleButton(

Loading…
Cancel
Save