Upgrade to 4.1.5

pull/791/head
X Code 3 years ago
parent 7b330c95f0
commit 6ac59dcfbb
  1. 3
      CHANGELOG.md
  2. 20
      lib/src/widgets/toolbar.dart
  3. 1
      lib/src/widgets/toolbar/quill_dropdown_button.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,6 @@
# [4.1.5]
* Add Font Size dropdown to the toolbar.
# [4.1.4]
* New borderRadius for iconTheme.

@ -151,18 +151,8 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
];
//default font size values
final fontSizes = fontSizeValues ?? [
10,
12,
14,
16,
18,
20,
24,
28,
32,
48
];
final fontSizes =
fontSizeValues ?? [10, 12, 14, 16, 18, 20, 24, 28, 32, 48];
return QuillToolbar(
key: key,
@ -200,9 +190,9 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
),
],
onSelected: (newSize) {
if (newSize != null)
{
controller.formatSelection(Attribute.fromKeyValue('size', newSize));
if (newSize != null) {
controller
.formatSelection(Attribute.fromKeyValue('size', newSize));
}
},
initialValue: fontSizes[initialFontSizeValue ?? 0],

@ -29,7 +29,6 @@ class QuillDropdownButton<T> extends StatefulWidget {
// ignore: deprecated_member_use_from_same_package
class _QuillDropdownButtonState<T> extends State<QuillDropdownButton<T>> {
int _currentValue = 0;
@override

@ -1,6 +1,6 @@
name: flutter_quill
description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us)
version: 4.1.4
version: 4.1.5
#author: bulletjournal
homepage: https://bulletjournal.us/home/index.html
repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save