-
Notifications
You must be signed in to change notification settings - Fork 81
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
[Feature] iOS: use FlutterEngineGroup for better perf #151
base: master
Are you sure you want to change the base?
[Feature] iOS: use FlutterEngineGroup for better perf #151
Conversation
The example project is crashing for me on iOS 16.6.1 with the following:
Same happens with #152. |
I had a lot of problems with Does it crash without my PR? And does it work without Thanks for helping. I did not hit this crash so I can't really debug it. I'll run it again right now though to confirm. |
this is the code that is failing
|
Yes, the example project runs fine for me on
|
yes I can reproduce the crash on 1.17.2 actually. Not sure how I missed that, since I'm pretty sure I tested it... |
tbh, I'm not familiar enough with this stuff to debug it. maybe you are? If we can't fix it, you could still merge my PRs and then revert this commit if you like. the macOS support is nice! Like others, I use this plugin to allow multiple dart ui instances. If we can't fix this, I will probably make a simpler plugin called |
Actually that's precisely the question I was going to ask - given Flutter now natively supports running plugins in background isolates, the only remaining use case for this package is running dart:ui functions in a background isolate. That's why this package is mostly in maintenance mode. I think it makes sense to create a dart_ui_isolate package for that use case (i.e. using the code in your PRs), mark this package as deprecated and point users who need dart:ui support to that new package. Thoughts? |
ya that makes sense to me. I started work on |
theres actually still a use case for you might want to call both I don't need this. But someone might. |
Fair point. If anyone has that issue, I'd lean towards telling them to use a vanilla isolate for plugin code, and Or if they don't like that, then they can submit a PR to fix whatever broke :) |
As the title says, use FlutterEngineGroup for better perf on iOS.
There is a separate PR for android: #150
this closes
#149
#111
#73
I've tested these changes on iOS 17.2.1 and Flutter 3.16.8
About me, I am the maintainer of these packages, so I am pretty familiar with flutter plugins