Merge branch 'singerdmx:master' into master

pull/1382/head^2
Phạm Hoàng Sang 2 years ago committed by GitHub
commit 5edd022ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      CHANGELOG.md
  2. 2
      lib/src/models/documents/nodes/container.dart
  3. 6
      lib/src/widgets/controller.dart
  4. 2
      pubspec.yaml

@ -1,3 +1,9 @@
# [7.4.3]
- Fixed a space input error on iPad.
# [7.4.2]
- Fix bug with keepStyleOnNewLine for link.
# [7.4.1]
- Fix toolbar dividers condition.

@ -25,7 +25,7 @@ abstract class Container<T extends Node?> extends Node {
int get childCount => _children.length;
/// Returns the first child [Node].
Node get first => _children.first;
Node? get first => isEmpty ? null : _children.first;
/// Returns the last child [Node].
Node get last => _children.last;

@ -400,8 +400,10 @@ class QuillController extends ChangeNotifier {
extentOffset: math.min(selection.extentOffset, end));
if (_keepStyleOnNewLine) {
final style = getSelectionStyle();
final notInlineStyle = style.attributes.values.where((s) => !s.isInline);
toggledStyle = style.removeAll(notInlineStyle.toSet());
final ignoredStyles = style.attributes.values.where(
(s) => !s.isInline || s.key == Attribute.link.key,
);
toggledStyle = style.removeAll(ignoredStyles.toSet());
} else {
toggledStyle = Style();
}

@ -1,6 +1,6 @@
name: flutter_quill
description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter.
version: 7.4.1
version: 7.4.3
homepage: https://1o24bbs.com/c/bulletjournal/108
repository: https://github.com/singerdmx/flutter-quill

Loading…
Cancel
Save