-
-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] '!composingRange.isValid || composingRange.isCollapsed': is not true #200
Comments
any runnable simple demo? |
This error is reproduced by the example attached in this repository. |
"extended_text_field" from pub.dev, specifically version 12.0.0, which claims to have synchronized the official code. Please give it a try, and if you still encounter issues, feel free to reopen it. |
In version 12.0.0 the error is repeated |
can you reprduce it at a really smartphone? i can't reproduce it at my side. |
The error is not repeated on a real device. Only on a virtual machine. Thank you! |
This error is caused by an assert keyword. In development and debugging, if the condition inside the assert is not true, it will trigger an exception. a temporary solution is to comment out the assert line. open the Editable_text.dart and comment out this line: |
Version
11.0.1
Platforms
Android
Device Model
Emulator
flutter info
When I move the carriage to the end of the text, where there is an Extended WidgetSpan, an error occurs: Failed assertion: line 2551 pos 16: '!composingRange.isValid || composingRange.isCollapsed': is not true.
How to reproduce?
There are several ExtendedWidgetSpans in the text. I click on the screen and translate courses to the end of the text.
Example:
This is an example of text with {item1} and {item2}. And I click here.
Logs
Example code (optional)
No response
Contact
No response
The text was updated successfully, but these errors were encountered: