Assertion Failure in line.dart When Editing Text with Block-Level Attributes in Debug Mode #2150
Closed
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Flutter Quill version
10.4.5
Steps to reproduce
Expected results
Text should appear immediately when typed, without requiring the editor to lose focus. No assertion failures should occur.
Actual results
In debug mode, the text does not appear until the editor loses focus. An assertion failure occurs in line.dart on line 147.
Code sample
No response
Additional Context
I've encountered an assertion failure when using the Flutter Quill editor in debug mode. This issue occurs specifically when I apply block-level attributes (such as lists or alignment) to text, delete a character, and then attempt to type again. The issue manifests as follows:
Behavior in Debug Mode:
After deleting a character, any further typing does not immediately appear in the editor.
The typed text only becomes visible after the editor loses focus.
The following assertion is thrown:
Behavior in Release Mode:
The issue does not occur in release mode. The editor behaves as expected, with no assertion failure or delayed text rendering.
The issue might be related to https://github.com/singerdmx/flutter-quill/issues/1622
Logs
The text was updated successfully, but these errors were encountered: