MrPowerGamerBR
08/30/2021, 2:23 PMCicero
09/01/2021, 7:58 AMESchouten
09/02/2021, 3:55 PMnordiauwu
09/03/2021, 1:07 PMLeoColman
09/03/2021, 6:21 PMLeoColman
09/04/2021, 1:09 AMAyfri
09/05/2021, 6:56 AMCLOVIS
09/10/2021, 9:00 PMcompose.foundation
and compose.material
not available yet for JS? Gradle refuses to build if I put them in commonMain
, saying the JS IR variants are missing.CLOVIS
09/10/2021, 10:25 PMcompose.web.widgets
source code, it is very bare at the moment (a few types of buttons/text, but no TextField etc). At the moment, is the recommended way to write multiplatform UIs? Is it to stick with it and expect-actual what it doesn't have, or completely ignore it?João Martins
09/11/2021, 1:48 AMdata-callback
, it errors saying that it isn't a functionadjpd
09/11/2021, 8:09 PMnordiauwu
09/12/2021, 4:02 PMVinay Gaba
09/13/2021, 5:10 PMTristan
09/15/2021, 8:59 PMobject BoardCssVariable {
val translateOrigin by variable<StylePropertyString>()
}
The current examples are use it in something like
object BoardSheet : StyleSheet() {
val container by style {
BoardCssVariable.translateOrigin("translateY(-150%)")
property("transform", BoardCssVariable.translateOrigin.value())
}
}
But that’s not really useful. I want to change its value depending on some logic. So I ended up doing
Div({
style {
if (myCondition) {
property(BoardCssVariable.translateOrigin.name, "translateY(-150%)")
}
}
}) {}
Is there some ideas to make it more pleasant? Maybe Compose for web could get some handy features via the compiler, some kind of CSS runtime like Emotion? Of course, it is not blocking. Just curious to know what will be the team’s take on that 🙂
Maybe I could have done something like
Div({
classes(BoardSheet.container("translateY(-150%)"))
}) {}
and under the wood, the compiler would have done what I manually did. I don’t know 🤷Emil Kantis
09/15/2021, 9:10 PMHugo Miguel Coutinho Dias
09/16/2021, 4:40 PMval (modalState, setModalState) = remember { mutableStateOf<(@Composable () -> Unit)>({ loading() }) }
solidogen
09/16/2021, 9:06 PMCLOVIS
09/22/2021, 8:14 PM@Composable
fun App() {
var email by remember { mutableStateOf ("") }
TextInput(email) {
onChange { email = it.value }
}
}
However, it.value
is always an empty string. Am I doing something obviously wrong (like calling the wrong function), or is my problem more complicated?salomonbrys
09/24/2021, 7:22 AMLeoColman
09/24/2021, 8:20 PMLeoColman
09/24/2021, 11:56 PMGreg Steckman
09/26/2021, 12:34 AMLeoColman
09/26/2021, 5:50 PMBig Chungus
09/26/2021, 6:40 PMSvg(...)
composablesalomonbrys
09/27/2021, 6:01 PMSlackbot
09/27/2021, 8:37 PMBig Chungus
09/27/2021, 11:09 PMuli
09/28/2021, 8:05 AMuli
09/29/2021, 9:03 AMjs(BOTH)
things work fine and my js(IR)
based frontend modules can consume the shared artefacts just fine.
If I declare the JS target as js(IR)
in the shared module I get the following exception:
> Task :shared:compileKotlinJs
exception: java.lang.IllegalStateException: Cannot find the Composer class in the classpath
at androidx.compose.compiler.plugins.kotlin.lower.AbstractComposeLowering.<init>(AbstractComposeLowering.kt:195)
Carter
09/29/2021, 1:00 PMCarter
09/29/2021, 1:00 PMOleksandr Karpovich [JB]
09/29/2021, 1:37 PMCarter
09/30/2021, 11:55 AMOleksandr Karpovich [JB]
09/30/2021, 12:09 PM