I built a collection of all composables found in o...
# compose
a
I built a collection of all composables found in official compose libraries (such as material 2 & 3, foundation, etc). It contains images of the composables, code signatures/parameters and code samples. Suggestions/feedback more than welcome! https://composables.co/components
❤️ 17
k
wow! awesome! Just yesterday I thought about something the same 🙂
It would be good to mark multplatform and plain android widgets somehow 😉
a
happy to add that if you told me where i can get that info 😄
i thought that all compose libraries (material 2,3, foundation, etc) are available in all compose platforms no (desktop, android)?
k
Let me check. might be you right)
Yes, it looks like you are right 😆 don't know why I was sure that there is supported some part
m
But you cannot use all of them in common code, e.g.,
Popup
. What about also adding the platform specific widgets like, e.g., Tooltip for desktop?
a
@Michael Paus which library includes those ?
as in which Gradle dependency
m
They should be in whatever you get with
Copy code
implementation(compose.desktop.common)
a
ill investigate. thanks for the suggestion 👍
k
I think it is related with lack of popup window on non-android platforms
a
thanks for letting me know. there are a few things to sort out first on the site (like add search, etc) and will have a proper look for multiple platforms
m
@Konstantin Tskhovrebov What do you mean by “lack of popup window”? There is a Popup function on desktop too. It is just not compatible with the one from Android. It has, e.g., this additional parameter “focusable” which forces you to use them with an expect/actual wrapper if you want to use Popups in the common code.
k
I mean, a lot of not presented things are related with popup window. It's just my observation.
b
Looks good. Would be useful if code examples had imports too
a
@Berkeli Alashov is that a problem? i assumed that the IDE helps with all the imports so it’s ok
b
We cannot do "Import all missing imports" right? (Android studio / intellij). We can do it one by one but that takes a lot of time for things like this: https://pastebin.com/RyCxcRaP - 31 imports, an most of them require manual choosing between compose vs other stuff (i guess that's the reason for IDEA not being able to auto import all at once)
a
@Berkeli Alashov I use F2 to jump to the next issue in the IDE and then alt+Enter to import w/e is missing