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