compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

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

Open longqingzhao opened this issue 1 year ago • 3 comments

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 avatar May 11 '24 01:05 longqingzhao

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 avatar May 13 '24 13:05 eymar

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?

PMARZV avatar May 13 '24 14:05 PMARZV

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 avatar May 14 '24 03:05 longqingzhao

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.

longqingzhao avatar May 14 '24 04:05 longqingzhao

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 avatar May 14 '24 08:05 eymar

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

okushnikov avatar Jul 14 '24 14:07 okushnikov