https://kotlinlang.org logo
#glance
Title
# glance
c

chanjungskim

01/05/2023, 12:16 PM
Is there any way to seperate Glance import and Compose import? I always need to select one of them when I code... I also make Widget so I use both of them.
w

Willie Koomson

01/06/2023, 7:42 PM
I think the best way is just to keep them in separate files, so the imports names do not clash. You could also use fully qualified names everywhere (e.g.
androidx.glance.Button
) or import aliases (e.g.
import androidx.glance.Button as GlanceButton
) but that will probably be too tedious
7 Views