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 FlutterView #351
Comments
Things that have been revealed about NUI
|
I have succeeded in showing the rendering result of flutter through ImageView with the idea mentioned above. by the way for some reason... I can't attach any image files. Is it because I am in the office? |
I have a question, on which scenario will flutterview be used on Tizen? like hybrid app on android: NUI page-->flutter page-->NUI page? or display flutter app as an UI component on NUI app? |
There are no clear requirements related to the scenario. |
ok, I just can't see any advantages of the latter scenario. Apps can use NUI components directly, why use flutter's UI components? If there are multiple components, how to handle events like focus? |
Hi This feature follows Flutter's Add to app concept. The first of the two scenarios you talked about was Since there is no concept of fragment in tizen, I think that the FlutterView we are planning now can replace it. The event, focus, and a11y have not been considered yet. |
@JSUYA However, the app models of the two platforms did not correspond exactly, I tried to relate it as much as possible. |
[update 22/4/7] I confirmed through PoC development that flutter can be shown as below based on NUI's ImageView and NativeImageQueue. However, I think this approach requires too much implementation(touch/key event handlers, IME and etc) on embedding...
That's it. If you have any ideas or questions for a FlutterView implementation, please let me know. [updates 22-08-03] |
To achieve this, we considered using Tizen 6.5 packages for making sysroot to build engine. Supported devices
glibc version
If you want to build engine with Tizen 6.5 packages, you may need below.
|
here is my attempt to enable
If you don't need to disable |
There are two cases so far that use_flutter_cxx disable is needed. When
The
With these two workarounds I don't think use_flutter_cxx disable is necessary. I think the remaining issue is the |
Contributes to flutter-tizen#351. This is a flutter view class available in NUI UIFW. ``` var flutterView = new NUIFlutterView() { Size2D = new Size2D(width, height), Position2D = new Position2D(x, y), ); if (flutterView.RunEngine()) { GeneratedPluginRegistrant.RegisterPlugins(flutterView); ParentView.Add(flutterView); } ... if (flutterView.IsRunning) { flutterView.Destroy(); } ```
I created a wiki page: https://github.com/flutter-tizen/flutter-tizen/wiki/Adding-to-existing-app @JSUYA The embedder has been migrated not to use |
The --system-cxx option is required to apply the above code.
In I don't think we need to change |
I thought the code could be moved to the embedder (C++) side because you can now use the
|
Um... what I mean is that if we set
As you said, we can create Dali's we don't necessarily have to move it. Isn't it? now, it is only a difference in where |
There are internal requirements for
FlutterView
.The main purpose is to provide some interface for each language(
C#
/C++
) that works as a UI component of Tizen rather than a single page FlutterApp. (see : https://docs.flutter.dev/development/add-to-app)Although specific requirements have not yet been communicated, we may need to support both. however, our top priority is to provide Flutter-tizen as a NUI component.
I think there are two ways to achieve this. the first way is to provide it by implementing it in embeddings, and the other way is to provide it by implementing in Tizen platform level after including flutter-tizen to Tizen platform like the webview provided in Tizen UI Toolkit. each way has distinct pros and cons I think but I'm approaching it the first way.
Several issues have already been opened and reviewed, but it seems to me that they all serve the same purpose.
so I will close these issues in favor of managing them as a single issue. (@JSUYA agreed to this)
Here's a rough to-do list.
(Please feel free to add a specific to do item. honestly, I still don't know exactly what to do 😅)
It means that the existing API name or behavior can be changed.
The text was updated successfully, but these errors were encountered: