Ihor Kviten
01/04/2022, 10:31 PMimport androidx.compose.foundation.layout.Column
package, is it correct? Because in my case I'm getting "Unresolved reference" for Row or Column
P.S. Nevermind, it fixed the issue. Strange design idea for me. What if Jetpack-Compose devs want to add new elements in the future? Isn't it better to import the whole layout package once at all?rkechols
01/05/2022, 12:26 AM*
to import everything from that package/namespace/etc.
https://kotlinlang.org/docs/packages.html#imports
I believe that's frowned upon (at the very least, I personally frown upon it) because it hides what is actually being imported from the coder and "floods" your file with extra names.
With Java/Kotlin imports, I just import every thing I need individually. Not as friendly for coders as the python import system, IMO, but here we are. IDE's are helpful, though. Jetbrains IDEs let you just do ALT+Enter to import the needed thing, or CTRL+ALT+O to clean up your importsColton Idle
01/05/2022, 5:25 AMIhor Kviten
01/05/2022, 7:31 AMColton Idle
01/06/2022, 3:01 AM