-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
renderFlutterWidget not working inside interactivity callback [BLOCKED BY dart:ui] #170
Comments
Can you add a breakpoint to where the exception is thrown to determine what exactly might be going wrong? |
Hey @ABausG, |
I wonder if there any solution at all in this case.. |
Thanks for the investigation! According to flutter/flutter#10647 (comment) it might be solved if using |
I tried spawning a flutter isolate with this package, it still doesn't work, and throws the same error. |
On Android it's run fine but on ios I have the same error
here is my flutter doctor
|
@ctrl-aziz is right! @ABausG Please is there anything we can do to fix this? this bug blocks me currently from updating my app to support interactive widgets in ios 17. |
Can you try if it maybe helps if you add the Override mentioned in https://github.com/ABausG/home_widget/blob/dev/README.md This might wake the app up a bit more such that dart:ui might work |
@ABausG I did that before opening the issue - no difference.
|
Hi @ABausG, |
@naamapps I know of that Error Message. Unfortunately the fix for this that is behind the Link of registering the background task queue is not working as the header is not exposed in swift: Can you confirm that the function you define is being called however the image generation fails? Maybe @leighajarett has an idea how to work around this? |
@ABausG |
Hi @ABausG, |
I have the same problem when |
So turns out the issue wasn't the one initially referenced but rather as @dario-digregorio mentioned the issue lays in dart:ui where you cannot capture the canvas while in the background (or in an isolate) I think the appropriate ticket to track this on is this one flutter/flutter#10647 |
Hey,
I'm trying to render a new image when the user interacts with the widget on iOS (android not tested), but I get an error.
Exception: Failed to render the widget: Exception: operation failed
Please advise,
Thanks
The text was updated successfully, but these errors were encountered: