Skip to content
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

Use the real FlutterEngine #54

Open
Clancey opened this issue Jul 31, 2020 · 1 comment
Open

Use the real FlutterEngine #54

Clancey opened this issue Jul 31, 2020 · 1 comment

Comments

@Clancey
Copy link

Clancey commented Jul 31, 2020

IMHO in order for this to be successful, you need to continue to transpile the flutter SDK, but instead of re-writing the flutter engine in C# it should bind/pinvoke into the real engine.

@JeroMiya
Copy link
Owner

JeroMiya commented Aug 3, 2020

Yes, this is definately on the horizon to review and make a more informed decision on. Issues and questions that need to be resolved (not comprehensive):

  • Can we emulate Dart's FFI functionality in C# efficiently or will we need to hand-rewrite all the bindings/dart-wrapping code to use P/Invoke directly?
  • (Research TODO for me): what all functionality is in the engine to begin with? For example, is it functionality that is already implemented in Xamarin (e.g. platform integration, platform channels, etc...)? FFI wrappers for Skia?
  • How to best translate Dart isolates to .Net/Xamarin. How do isolates interact with the Flutter engine?

I'd like to also review the UIWidgets implementation to see what their choices were (I suspect they rewrote the engine in C# and delegated to Unity):
https://github.com/UnityTech/UIWidgets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants