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

Are there any good suggestions about using compose to generate UI through drag and drop and output the code to the local? #4802

Closed
longqingzhao opened this issue May 11, 2024 · 6 comments
Labels
enhancement New feature or request wait for reply Further information is requested

Comments

@longqingzhao
Copy link

I want to start a project about generate UI.
but I have no idea use compose to generate UI.

can you give me some good suggestions?

@longqingzhao longqingzhao added enhancement New feature or request submitted labels May 11, 2024
@eymar
Copy link
Collaborator

eymar commented May 13, 2024

What do you mean by UI generation?

Compose Multiplatform requires writing some code in Kotlin in order to create and display some UI elements/views.

Perhaps these links can help you:

https://github.com/davidleiti/ComposeGenerator
https://jetpackx.io/

@eymar eymar added wait for reply Further information is requested and removed submitted labels May 13, 2024
@PMARZV
Copy link

PMARZV commented May 13, 2024

is it possible to create a tree of nested composables using compose itself? (ui editor that adds composables to screen and shows them using real composables) or would it be too complicated and it would be better to draw them in a canvas?

@longqingzhao
Copy link
Author

I think I need these function
1:drag and drop element.
2:generate ui In the designated place what the element was draged and droped
3:generate code which ui was generated
4:the code writed in XXX.kt

@longqingzhao
Copy link
Author

like:https://github.com/alibaba/lowcode-engine.git
but this is difficute for people who are not programmers.
I want to create a project to use easily with compose.

@eymar
Copy link
Collaborator

eymar commented May 14, 2024

I think it's possible to implement Compose code generator, but Compose Multiplatform doesn't have this feature itself and it won't have it.

Perhaps, Large Language Models might be helpful here. I can imagine that such a model would take an image of your UI, it would describe it first in plain text, and then it will try to generate the Compose code.

@eymar eymar closed this as completed May 14, 2024
@okushnikov
Copy link

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wait for reply Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants