orangy
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: LayoutNode@108e4651 children: 1 measurePolicy: androidx.compose.foundation.Scrollbar_desktopKt$verticalMeasurePolicy$1@7d30d0b0 is not ready. layoutState is NeedsRemeasure
Build 0.4.0-build173
Any ideas?jim
03/13/2021, 5:43 PMorangy
VerticalScrollbar
in my case, but can’t repro easily 😞 If I remove the scroll bar, exception goes awayIgor Demin
03/13/2021, 10:52 PMCompositionLocalProvider(LocalIndication provides NoIndication) {
...
}
Where `NoIndication`:
private object NoIndication : Indication {
private object NoIndicationInstance : IndicationInstance {
override fun ContentDrawScope.drawIndication() {
drawContent()
}
}
@Composable
override fun rememberUpdatedInstance(interactionSource: InteractionSource): IndicationInstance {
return NoIndicationInstance
}
}
orangy
Igor Demin
03/14/2021, 12:02 PMDesktopTheme
extends MaterialTheme
, it defines style for desktop-only components like scrollbars, so it shouldn't override indication.
P.S. We haven't yet figured out how styling should work on desktop, behavior can change in the futureorangy
orangy
DesktopMaterialTheme
and DesktopTheme
, so the latter don’t extend material themeorangy
androidx.compose.material
package? I’m building my own theme, and would like to avoid depending on material stuff.Igor Demin
03/14/2021, 2:20 PMthe latter don’t extend material themeI mean purpose of
DesktopTheme
is to "extend" styles defined in the other common themes like MaterialTheme
, not "override" them.
Also, is it possible to split desktop and desktop-material, so I can get rid ofMaybe we can split. I filled the issuepackage? I’m building my own theme, and would like to avoid depending on material stuff.androidx.compose.material
Igor Demin
03/14/2021, 2:22 PMso I can get rid ofFor now you can exclude it explicitly:androidx.compose.material
implementation(compose.desktop.currentOs) {
exclude(group = "org.jetbrains.compose.material")
}