-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support dart entrypoint #111
Comments
The plugin build system (https://github.com/flutter-tizen/flutter-tizen/blob/20007aa24f83ff21ff3f5314410f16e448b0d75c/lib/tizen_plugins.dart#L194) should be a current blocker for this. I'll check if there's any way to work around if you give me some example of how to test this. (You're not referring to named routes, right?) |
For those who are interested: Custom entry points can be specified in Dart code using The Android embedder supports starting an engine from a custom entry point: if (dartEntrypoint == null) {
dartEntrypoint = DartEntrypoint.createDefault(); // main()
}
if (activeEngines.size() == 0) {
engine = createEngine(context);
engine.getDartExecutor().executeDartEntrypoint(dartEntrypoint);
} else {
engine = activeEngines.get(0).spawn(context, dartEntrypoint);
} What you are trying to do is to set different entry points for spawned engine instances, right? If so, there's another approach to achieve a similar goal without creating multiple entry points by using Navigator. However, it will result in additional complexity as described here:
|
@xiaowei-guan |
Yes, we try set entry point for flutter engine on Tizen. FlutterProjectArgs args = {};
args.custom_dart_entrypoint = I tested it today, if we set custom_dart_entrypoint , we can run this entrypoint successful. |
we add this for multiple screen based on EOM, run two engines, not share memeory. |
This feature may be needed by flutter-tizen/flutter-tizen#143. Maybe we can implement this when #133 is merged (to avoid conflicts). |
Dart entrypoint for engine(xiaowei-guan@163bb68) |
Implemented by #149. |
We need to update the tool side as well in order to be able to use this feature. |
Typically, a Flutter app begins execution at the Dart method called main(), however this is not required. Developers can specify a different Dart entrypoint
The text was updated successfully, but these errors were encountered: