-
Notifications
You must be signed in to change notification settings - Fork 28.6k
UI actions are only avai 8000 lable on root isolate #79353
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
Comments
I have browsed this issue, but could not find a solution. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
My application has a function to preview files, when the file size is very large, I need to divide the text into many parts and load them lazily using the
ListView
, but I need to calculate the length of theListView
in advance to display the scroll bar, I would take the calculating process on the UI thread that leads to the UI lag problem, so I create a isolate to calculate, but this led to yet another problem: unable to call in the isolate UI related functions, such as:TextPainter.layout(...)
.Steps to Reproduce
flutter create bug
.TextPainter.layout(...)
function on a isolateExpected results: Able to run
TextPainter.layout(...)
function in a new isolateActual results: UI actions are only available on root isolate
Logs
The text was updated successfully, but these errors were encountered: