Upgrade to 7.1.12

pull/1198/head
Cheryl 2 years ago
parent 06cafef8c9
commit ed546e1aa6
  1. 5
      CHANGELOG.md
  2. 2
      flutter_quill_extensions/pubspec.yaml
  3. 6
      lib/src/models/documents/attribute.dart
  4. 2
      lib/src/widgets/text_line.dart
  5. 3
      lib/src/widgets/toolbar.dart
  6. 3
      lib/src/widgets/toolbar/toggle_style_button.dart
  7. 2
      pubspec.yaml

@ -1,5 +1,8 @@
# [7.1.12]
- Add superscript and subscript styles.
# [7.1.11] # [7.1.11]
- Add inserting indents for lines of list if text is selected - Add inserting indents for lines of list if text is selected.
# [7.1.10] # [7.1.10]
- Image embedding tweaks - Image embedding tweaks

@ -12,7 +12,7 @@ dependencies:
flutter: flutter:
sdk: flutter sdk: flutter
flutter_quill: ^7.1.10 flutter_quill: ^7.1.12
file_picker: ^5.2.10 file_picker: ^5.2.10
image_picker: ^0.8.7+3 image_picker: ^0.8.7+3

@ -50,9 +50,11 @@ class Attribute<T> {
static const BoldAttribute bold = BoldAttribute(); static const BoldAttribute bold = BoldAttribute();
static final ScriptAttribute subscript = ScriptAttribute(ScriptAttributes.sub); static final ScriptAttribute subscript =
ScriptAttribute(ScriptAttributes.sub);
static final ScriptAttribute superscript = ScriptAttribute(ScriptAttributes.sup); static final ScriptAttribute superscript =
ScriptAttribute(ScriptAttributes.sup);
static const ItalicAttribute italic = ItalicAttribute(); static const ItalicAttribute italic = ItalicAttribute();

@ -355,7 +355,7 @@ class _TextLineState extends State<TextLine> {
if (nodeStyle.containsKey(Attribute.script.key)) { if (nodeStyle.containsKey(Attribute.script.key)) {
if (nodeStyle.attributes.values.contains(Attribute.subscript)) { if (nodeStyle.attributes.values.contains(Attribute.subscript)) {
res = _merge(res, defaultStyles.subscript!); res = _merge(res, defaultStyles.subscript!);
}else if (nodeStyle.attributes.values.contains(Attribute.superscript)) { } else if (nodeStyle.attributes.values.contains(Attribute.superscript)) {
res = _merge(res, defaultStyles.superscript!); res = _merge(res, defaultStyles.superscript!);
} }
} }

@ -300,7 +300,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
iconTheme: iconTheme, iconTheme: iconTheme,
afterButtonPressed: afterButtonPressed, afterButtonPressed: afterButtonPressed,
), ),
if (showSubscript) if (showSubscript)
ToggleStyleButton( ToggleStyleButton(
attribute: Attribute.subscript, attribute: Attribute.subscript,
@ -311,7 +310,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
iconTheme: iconTheme, iconTheme: iconTheme,
afterButtonPressed: afterButtonPressed, afterButtonPressed: afterButtonPressed,
), ),
if (showSuperscript) if (showSuperscript)
ToggleStyleButton( ToggleStyleButton(
attribute: Attribute.superscript, attribute: Attribute.superscript,
@ -322,7 +320,6 @@ class QuillToolbar extends StatelessWidget implements PreferredSizeWidget {
iconTheme: iconTheme, iconTheme: iconTheme,
afterButtonPressed: afterButtonPressed, afterButtonPressed: afterButtonPressed,
), ),
if (showItalicButton) if (showItalicButton)
ToggleStyleButton( ToggleStyleButton(
attribute: Attribute.italic, attribute: Attribute.italic,

@ -105,7 +105,8 @@ class _ToggleStyleButtonState extends State<ToggleStyleButton> {
} }
bool _getIsToggled(Map<String, Attribute> attrs) { bool _getIsToggled(Map<String, Attribute> attrs) {
if (widget.attribute.key == Attribute.list.key || widget.attribute.key == Attribute.script.key) { if (widget.attribute.key == Attribute.list.key ||
widget.attribute.key == Attribute.script.key) {
final attribute = attrs[widget.attribute.key]; final attribute = attrs[widget.attribute.key];
if (attribute == null) { if (attribute == null) {
return false; return false;

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

Loading…
Cancel
Save