darkmoon_uk
09/07/2021, 6:12 AM@Preview
s from your top-level Application modules, for either Android or Desktop. You can try to do it from library projects or submodules, and some stuff might work if you import extra dependencies; but it's unsupported and gets ugly (ref: this thread).
• Secondly; import the compose.preview
and compose.uitooling
dependencies for Android and Desktop as you would expect to; but for the Android top-level project you must apply a Gradle Dependency Substitution to 'deeply' replace all the JetBrains preview dependencies with the Google ones, for it to work with Android Studio properly. By 'deeply', I mean the replacement will affect all transitive dependencies as well. Just directly depending on the Google one won't work; you'll get duplicate class errors.
I will fetch you a code snippet for the dependency substitution...Ayfri
09/07/2021, 12:27 PMval stateVertical = rememberScrollState(0)
Box(
modifier = Modifier.verticalScroll(stateVertical)
) {
Text(myVeryLongText)
VerticalScrollbar(
modifier = Modifier.align(Alignment.CenterEnd).fillMaxHeight(),
adapter = rememberScrollbarAdapter(stateVertical)
)
}
I get this error :
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Can't represent a size of 1073741952 in Constraints
at androidx.compose.ui.unit.Constraints$Companion.bitsNeedForSize(Constraints.kt:408)
Slackbot
09/09/2021, 11:34 AMJavier
09/10/2021, 8:54 AMBig Chungus
09/11/2021, 11:00 AMKirill Grouchnikov
09/11/2021, 9:27 PM1.0.0-alpha4-build344
is out with new kotlin-based bindings to Skia, including Perlin noise and turbulence shaders 🙂Rafs
09/11/2021, 9:30 PMTristan B.
09/12/2021, 9:54 AMModifier.pointerInput
? I have a canvas and I need to know where the click happened and which button was used.Mitchell Syer
09/13/2021, 1:00 AMAlonso Ato Neyra
09/13/2021, 5:22 AMdarkmoon_uk
09/13/2021, 12:29 PMAnimatedContent
driven slide transition between master/detail views.
When starting the app with the old Window { <content> }
function, it is reliable and silky smooth 👌.
Now when starting with application { Window { <content> } }
the animation works maybe 1 in every 10 triggers. The content is all the same...
Is this a known issue; any likely causes? Using 1.0.0-alpha4-build344
luen
09/13/2021, 4:35 PMAyfri
09/14/2021, 7:10 AMAyfri
09/14/2021, 7:56 AMFrank
09/14/2021, 8:55 AMremco
09/14/2021, 10:18 AMburnoo
09/14/2021, 6:02 PMAlonso Ato Neyra
09/15/2021, 2:16 AMAaron Yoder
09/16/2021, 4:12 PMUnsupportedOperationException
when trying to set a Menu
Item
to enabled=false
while using an icon. Happens on both 1.0.0-alpha3
and 1.0.0-alpha4-build348
. More info in thread.Kirill Grouchnikov
09/16/2021, 4:16 PMKirill Grouchnikov
09/16/2021, 7:11 PMuli
09/16/2021, 8:52 PMFrank
09/17/2021, 7:18 AMseb
09/17/2021, 9:59 AMatsushieno
09/17/2021, 7:30 PMjava.lang.NoSuchMethodError: No static method: (mymethod)
at run time. Is it that compose compiler plugin does not resolve expect/actual stuff?Yan Pujante
09/18/2021, 5:18 PMLukas K-G
09/21/2021, 4:24 AMFrank
09/21/2021, 4:55 PMrcd27
09/21/2021, 9:53 PMwindows
distributable from console to watch the logs?Cristian Rosa
09/22/2021, 12:13 AMCristian Rosa
09/22/2021, 12:13 AMolonho
09/22/2021, 5:15 AMCristian Rosa
09/22/2021, 9:22 AMLaunchedEffect(state) {
snapshotFlow { state.size }
.onEach(::onWindowResize)
.launchIn(this)
private fun onWindowResize(size: WindowSize) {
println("onWindowResize $size")
}
but then…
how to stop (don’t allow) to windows be resized only if some condition are matched?
My Goal ideally would be:
• Compose start (at minimum size possible)
• Allow resize only to higher value
• Allow future resize down but only until “minimum values” are reached again