What components should I be using to create someth...
# compose-desktop
v
What components should I be using to create something like a font selector dialog? E.g. I have a Box with a LazyColumn and a VerticalScrollBar. Inside the LazyColumn is a Text item - but how do I make the Text item 'selectable'? Should this be a button instead? Or?
I've found an example in the Todo app - it's functions within functions within functions https://github.com/JetBrains/compose-jb/tree/master/examples/todoapp
Damn this is A LOT of work; really not convinced that this is "better" than an OO approach. Looks like a lot duplication of code when there's no inheritance to work with.
j
Almost certainly you just haven't adopted the "thinking in Compose" mental model yet.  This is normal, it usually takes 3-6 months of usage before people have the "💡ah-ha , holly-shit this is good" moment.  Until then, you will struggle with it, you will fight it, it will frustrate you, and then it will all click in your mind six months later.  If there was anything we could do to improve the learning curve, we would, it's just a different way of thinking about programming.  Think about how you almost certainly felt about 
for
 loops or 
exceptions
 when you were taking your very first programming class, it was probably a bit mind bending to start thinking the way a computer thinks.  The entire Android team was fighting me for months when I first proposed Compose, until it finally clicked for all of them and now they all love it.
👍 3
👏 4
android eyes 1
👏🏻 1