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

zsperske

01/10/2021, 7:13 PM
Hello, sometimes when I'm trying to extract a smaller composable from a larger composable using android studio's refactor "extract method" I will get error messages like this
Copy code
Function ColumnScope.weight(Float, Boolean) on Modifier will no longer be accessible after extraction
Is there a way around this?
a

Adam Powell

01/10/2021, 7:16 PM
Yes, have your extracted smaller composable be an extension function of ColumnScope
z

zsperske

01/10/2021, 7:16 PM
ahhh of course! thank you
👍 1