diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c361b8c..2c5d1f13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## [2.0.10] +* cursorConnt.color notify the text_line to repaint if it was disposed. + ## [2.0.9] * Improve UX when trying to add a link. diff --git a/lib/src/widgets/text_line.dart b/lib/src/widgets/text_line.dart index 736a9c01..ac81f217 100644 --- a/lib/src/widgets/text_line.dart +++ b/lib/src/widgets/text_line.dart @@ -886,10 +886,10 @@ class RenderEditableTextLine extends RenderEditableBox { void safeMarkNeedsPaint() { if (!attached) { - //Should not paint if it was unattach. + //Should not paint if it was unattached. return; } - safeMarkNeedsPaint(); + markNeedsPaint(); } } diff --git a/pubspec.yaml b/pubspec.yaml index 355b0239..6a0b5cb4 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: 2.0.9 +version: 2.0.10 #author: bulletjournal homepage: https://bulletjournal.us/home/index.html repository: https://github.com/singerdmx/flutter-quill