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

Colton Idle

08/29/2020, 4:23 AM
Just starting to really use compose. Going through the tutorial it starts with
Copy code
Text("A day in Shark Fin Cove")
        Text("Davenport, California")
        Text("December 2018")
and then tells you to wrap it in a column
Copy code
Column {
        Text("A day in Shark Fin Cove")
        Text("Davenport, California")
        Text("December 2018")
    }
Is there an easy way to wrap elements in a layout? I think swift UI had an easy way to highlight and right click > wrap with X layout or something. I could see myself using that a lot. Would also be nice to get a list of all layouts when you "surround with" or something. Unless this already exists... and I'm missing it.
w

Waseef Akhtar

08/29/2020, 4:00 PM
Nice point. I think that's a feature that we expect from an upcoming AS release. Would definitely help save time.
i

Ivan Feliciano

08/30/2020, 5:54 AM
Haven't tried, but maybe you can create your own template in Intellij/AS https://www.jetbrains.com/help/idea/surrounding-blocks-of-code-with-language-constructs.html