谢朋刚
08/02/2022, 7:14 AM{
"_lng_0": 116.397461,
"_lat_0": 39.909186,
"_$stable_57": 0
}
谢朋刚
08/02/2022, 7:15 AMEduardo Zuza
08/03/2022, 2:08 AMDiv(attrs = { style { id("seAdmRet"); display(DisplayStyle.Block) }; classes("form-group") }) {
Span { Text("Opção AdmRet - 1") }
Select(attrs = { classes("custom-select", "mr-sm-2", "dlg-100") }
) {
// TextInput("ola1","GD")
// Text( "opa")
// Text("olá")
}
}
Ayfri
08/03/2022, 9:56 PMAyfri
08/06/2022, 12:23 AMOliver.O
08/09/2022, 10:16 PMBrowserViewportWindow
for the initial window. It is easy to use, supports resizing, fills the entire browser viewport, sets the window title correctly and does not require a stylesheet. Inspired by code in @Tlaster's PreCompose. If you want to try: Code in 🧵Ayfri
08/10/2022, 3:17 PMjeran
08/11/2022, 4:13 PM谢朋刚
08/11/2022, 2:41 AMjeran
08/11/2022, 10:00 PMpainterResource
? quick slack search suggests svgs might not be supported in a canvas rnСтефан Јовановић
08/12/2022, 11:00 AMandylamax
08/13/2022, 1:59 PMAyfri
08/14/2022, 9:16 PMDiv({
classes(AboutMeStyle.timeline)
window.addEventListener("scroll", {
val footerOffset = document.querySelector(".${AppStyle.footer}")?.asDynamic()?.offsetTop as Double? ?: return@addEventListener
val currentOffset by mutableStateOf(window.scrollY + 100)
if (currentOffset < footerOffset) {
style {
top(currentOffset.px)
}
}
})
})
If I put a console.log
inside the condition it gets called so it should be fine, but no style is set, what am I doing wrong ?Ayfri
08/15/2022, 7:11 PMobject FooterStyle : StyleSheet() {
val buttonColor by variable<CSSColorValue>()
val button by style {
backgroundColor(buttonColor.value())
...
}
}
// somewhere in a @Composable
A(href = "/my-route", {
target(ATarget.blank)
classes(FooterStyle.button)
style {
FooterStye.buttonColor(Color.gray)
}
}) {
Text("Download")
}
But the variable isn't set in my resulting CSS and there's even no inline style at all 🤔John Aoussou
08/16/2022, 12:39 PMagrosner
08/18/2022, 1:18 AMagrosner
08/18/2022, 12:07 PMOliver.O
08/18/2022, 3:26 PMModule "androidx.compose.foundation:foundation" has a reference to symbol [...] EmptyLazyGridLayoutInfo
. It did work a couple of days ago. Re-downloaded the artifacts to no avail. Could it be that there's something wrong in the JB space repo? More Details in 🧵Casey Brooks
08/19/2022, 4:00 PMcompose.runtime
as a dependency? I’m trying to make a library with a “common Compose” module that’s compose-runtime only, and then additional modules that add on support for Material and JS DOM, but it seems like there’s a problem with compose runtime being used in the common sourceSetagrosner
08/19/2022, 5:30 PMval scrollListener = Channel<Double>()
2. Consume it in your scrollable composable:
val scrollState = rememberLazyListState()
LaunchedEffect(Unit) {
scrollListener.consumeAsFlow()
.collect {
scrollState.scrollBy(it.toFloat())
}
}
3. attach it to a window event:
fun main() {
window.addEventListener("wheel", { event ->
if (event is WheelEvent) {
event.stopPropagation()
GlobalScope.launch {
scrollListener.trySend(event.deltaY)
}
}
})
}
then you have scrolling supportCasey Brooks
08/19/2022, 10:03 PMzt
08/25/2022, 5:50 PMtheapache64
08/28/2022, 12:16 PMDavid Herman
09/02/2022, 1:57 AMdeviant
09/02/2022, 9:37 AMdeviant
09/02/2022, 11:15 AMModifier.onPreviewKeyEvent
and Modifier.onKeyEvent
don't work in browsers. desktop and android are okSebastien Leclerc Lavallee
09/08/2022, 3:14 PMtimothy.paetz
09/10/2022, 11:35 PMimplementation("app.softwork:routing-compose:0.2.8")
Thanks!Oluwasomidotun Victor
09/11/2022, 1:18 PMspierce7
09/11/2022, 6:17 PM