Konyaco
11/11/2021, 2:28 PMImage(
modifier = Modifier.size(93.dp, 24.dp),
painter = painterResource("logo_text.xml"),
contentDescription = null,
colorFilter = ColorFilter.tint(Color.White)
)
iamthevoid
11/11/2021, 6:18 PMSean Proctor
11/12/2021, 1:47 AMModifier.onPreviewKeyEvent
, but the keypress is still getting through to the BasicTextField
Kebbin
11/12/2021, 4:45 AMprogramSize - (leftSize + rightSize)
?
Or is there a way to do it with Layout priorities?
Thanks!elect
11/12/2021, 12:03 PMimplementation "androidx.compose.material:material-icons-extended:$compose_version"
Jonathan Moore
11/12/2021, 9:53 PMKebbin
11/14/2021, 3:53 AMAkram Bensalem
11/14/2021, 12:56 PMJakob K
11/15/2021, 1:01 PMincludeImplementation
is my custom configuration) as follows:
includeImplementation(compose.desktop.currentOs)
and then trying to resolve the dependencies of this configuration
includeImplementation.resolvedConfiguration.firstLevelModuleDependencies
I am getting the following error
Caused by: org.gradle.internal.component.AmbiguousConfigurationSelectionException: Cannot choose between the following variants of org.jetbrains.compose.foundation:foundation:1.0.0-beta5:
- debugRuntimeElements-published
- desktopRuntimeElements-published
- releaseRuntimeElements-published
How can I choose one of these variants and avoid this exception?elect
11/15/2021, 3:36 PMplugins {
kotlin("jvm") version embeddedKotlinVersion
id("org.jetbrains.compose") version "v1.0.0-beta6-dev462"
}
repositories {
google()
mavenCentral()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
}
org.gradle.internal.exceptions.LocationAwareException: Build file '/home/elect/IdeaProjects/app1/build.gradle.kts' line: 5
Plugin [id: 'org.jetbrains.compose', version: 'v1.0.0-beta6-dev462'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.composeorg.jetbrains.compose.gradle.pluginv1.0.0-beta6-dev462')
Searched in the following repositories:
Gradle Central Plugin Repository
maven(https://maven.pkg.jetbrains.space/public/p/compose/dev)Am I missing something obvious? Snapshot is there, maybe some problem with the marker?
joakim
11/15/2021, 6:23 PMCompose Multiplatform IDE Support
installed
• I have a block of code
@Preview
@Composable
fun SomePreview() {
MaterialTheme {
SomeScreen(someParam: boolean)
}
}
But I get a forever spinning progressbar in the desktop preview window saying "Rendering preview"
Am I missing something here?elect
11/15/2021, 9:19 PMJetBrains Toolbox 1.22.10685, Ubuntu 21.10 21.10 (Linux 5.13.0-21-generic)already ported to Compose? Because over there tray menu and notifications on Ubuntu are perfect, native-style. The ones from the tutorials are completely different instead, example
darkmoon_uk
11/15/2021, 10:44 PMAnnotatedString
?
*Erik Hellman*'s article discusses doing this; wondering if any fuller formed alternatives sprang up in the last year.Ayfri
11/16/2021, 4:11 PMAyfri
11/16/2021, 4:33 PMFullScreen
, the image doesn't show up, and if I don't the image is there, I'm using latest build 464 and Kotlin 1.5.31
Also when it is in fullscreen the app is freezed and I can't close it unless going into the Task Manager (from Windows)joakim
11/16/2021, 8:04 PMspierce7
11/17/2021, 1:54 AMJavier
11/17/2021, 3:01 PMExperimentalMaterialApi
?
The project is KMP, I know the sourceSets.all.lanaguageSettings
is the multiplatform way, but both are not working for me, not sure what is the issue but I can only remove the error by adding the OptInt(...)
to the composable function
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=androidx.compose.material.ExperimentalMaterialApi"
}
kotlin {
android()
jvm()
sourceSets {
all {
languageSettings.optIn("androidx.compose.material.ExperimentalMaterialApi")
}
...
}
}
v79
11/19/2021, 8:12 AMAaron Yoder
11/19/2021, 8:18 AMJavier
11/19/2021, 9:13 AMSlackbot
11/19/2021, 3:32 PMspierce7
11/19/2021, 4:26 PMRyan Mitchener
11/19/2021, 7:31 PMspierce7
11/20/2021, 6:30 PMLazyColumn
that’s being continuously updated with new items at the bottom, how do I keep the scroll locked at the bottom?Aaron Yoder
11/21/2021, 12:05 PMHumphrey
11/21/2021, 10:19 PMbartosz.malkowski
11/22/2021, 12:02 PMGoregius
11/22/2021, 4:20 PMRyan Mitchener
11/22/2021, 7:19 PM