https://kotlinlang.org logo
u

3bdoelnaggar

09/16/2020, 5:25 PM
I want to change layout directions how can I do that thanks
u

3bdoelnaggar

09/17/2020, 1:59 PM
I was hoping for something less complex but I will look into it thanks
It worked thanks I am trying to figure out what the code dose
v

Vinay Gaba

09/17/2020, 4:00 PM
it just passes the direction as am ambient and all composables that are in the scope will get that direction. The way it ends up working is that the
Layout
composable uses this ambient.
Layout
is used by a lot of composables internally like
Text
etc. That’s why it works for you!
👍 1
2 Views