Hi, my composable is moving the offset, but the background color is not moving. If I look in the layout inspector, I can clearly see that the offset has been moved. But the background color is still displayed at the old offset. What’s the problem?
That actually looks the right way round to me already
Ben Trengrove [G]
08/31/2022, 3:54 AM
If you are trying to use a lambda as well to avoid recomposition, you would also have to do the same width modifier if that's changing as well. There isn't a width {} modifier though so you would have to use layout {}
Ben Trengrove [G]
08/31/2022, 9:12 AM
Does moving the background to after the layout work now?
j
Ji Sungbin
08/31/2022, 11:00 AM
Wow! Now it works! Obviously it didn't work when I did it before, but now I try it again, it works. Thank you so much!