From 8a4a980d6a94c604bbb0afd2a64ea91d13fef306 Mon Sep 17 00:00:00 2001 From: Cheryl Date: Tue, 2 May 2023 12:34:45 -0700 Subject: [PATCH] Upgrade to 7.1.14 --- CHANGELOG.md | 3 +++ lib/src/models/documents/nodes/line.dart | 2 +- lib/src/widgets/controller.dart | 7 ++++--- pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42c9713d..e97089e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +# [7.1.14] +- Add indents change for multiline selection. + # [7.1.13] - Add custom recognizer. diff --git a/lib/src/models/documents/nodes/line.dart b/lib/src/models/documents/nodes/line.dart index e87451f1..42306edb 100644 --- a/lib/src/models/documents/nodes/line.dart +++ b/lib/src/models/documents/nodes/line.dart @@ -489,7 +489,7 @@ class Line extends Container { final remaining = len - local; if (remaining > 0 && nextLine != null) { final rest = - nextLine!.collectAllStylesWithOffsets(0, remaining, beg: local); + nextLine!.collectAllStylesWithOffsets(0, remaining, beg: local); result.addAll(rest); } diff --git a/lib/src/widgets/controller.dart b/lib/src/widgets/controller.dart index 529e393f..48bf136d 100644 --- a/lib/src/widgets/controller.dart +++ b/lib/src/widgets/controller.dart @@ -136,9 +136,10 @@ class QuillController extends ChangeNotifier { final indent = style.value.attributes[Attribute.indent.key]; final formatIndex = math.max(style.offset, selection.start); final formatLength = math.min( - style.offset + (style.length ?? 0), - selection.end, - ) - style.offset; + style.offset + (style.length ?? 0), + selection.end, + ) - + style.offset; Attribute? formatAttribute; if (indent == null) { if (isIncrease) { diff --git a/pubspec.yaml b/pubspec.yaml index f44f24bd..43a4ec74 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_quill description: A rich text editor supporting mobile and web (Demo App @ bulletjournal.us) -version: 7.1.13 +version: 7.1.14 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill