https://kotlinlang.org logo
#compose
Title
# compose
t

Travis Griggs

12/30/2022, 8:39 PM
It seems its common as editing composables, to wrap some existing composables in another. Is there some IDE magic that makes that flow easier? I looked in "refactor" menu options, but didn't see anything. Imagine for example, you have a Text(...), and you want to wrap it in a Column { ... }.
l

Landry Norris

12/30/2022, 8:44 PM
In Android Studio, you can place your cursor on the Text, click the light bulb, select ‘wrap with widget’, and select row or column.
c

CLOVIS

12/30/2022, 9:37 PM
You can also select some code, “surround with” (CTRL ALT T by default I think?) and select “{...}”
t

Travis Griggs

12/30/2022, 11:52 PM
🙏
2 Views