Colton Idle
07/06/2021, 12:31 PMStefan Oltmann
07/07/2021, 8:52 PMImage.makeFromEncoded()
as well as Android contentResolver.loadThumbnail()
give you a Bitmap
, but Compose Image needs an ImageBitmap
and as far as I can see the implementation of the extension asImageBitmap()
is on both worlds a really expensive conversation. 😞
Why isn't there a way to directly load an ImageBitmap if that's the needed format? 🤔David Dupraz
07/08/2021, 7:33 AMWindow(...)
function) is closed ?Stefan Oltmann
07/08/2021, 2:02 PMdbaelz
07/09/2021, 9:55 AMNotifier
and the experimental API with TrayState
. Both with 0.4.0
and 0.5.0-build225
.
fun main() = Window {
val notifier = Notifier()
val trayState = TrayState()
MaterialTheme {
Column {
Button(onClick = {
notifier.notify("Notification Notifier", "Hello there!")
}) { Text("Send via Notifier") }
Spacer(Modifier.height(8.dp))
Button(onClick = {
trayState.sendNotification(Notification("Notification TrayState", "Hello there!"))
}) {
Text("Send via TrayState")
}
}
}
}
spierce7
07/09/2021, 3:08 PMDzenan Bronja
07/11/2021, 10:45 AMtheapache64
07/11/2021, 6:21 PMAngelo Rüggeberg
07/12/2021, 6:21 AMLocalView
in compose Desktop ?
I am trying to have a code like this in place: LocalView.current.let { IntSize(it.width, it.height) }
Frank
07/12/2021, 7:49 AMFrank
07/12/2021, 8:43 AMStefan Oltmann
07/12/2021, 10:17 AM@Composable
expect fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
)
@Composable
actual fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
) = androidx.compose.foundation.VerticalScrollbar(
rememberScrollbarAdapter(scrollState),
modifier
)
@Composable
actual fun VerticalScrollbar(
modifier: Modifier,
scrollState: LazyListState
) = Unit
Brian G
07/13/2021, 2:04 PMChristos Malliaridis
07/13/2021, 4:36 PMTextField
?
I found the Modifier.pointerMoveFilter
for detecting mouse hovering, but I cannot find any way for modifying the mouse cursor appearance. This would be useful for elements like `TextField`s and `Button`s but also for games and playful UIs (desktop and web) where they want to provide custom cursors.Stefan Oltmann
07/14/2021, 6:26 AMStefan Oltmann
07/14/2021, 10:03 AMNurBahnhof
07/14/2021, 11:44 AMif (isLoading)
CircularProgressIndicator()
Then I set isLoading before and after doSomeHeavyStuffs(). But it doesn't work because I suppose the doSomeHeavyStuffs() function is running in the UI thread. Am I supposed to run it in a separate thread? How do I do it in Jetpack Compose?Stefan Oltmann
07/14/2021, 2:16 PMwindow.graphicsConfiguration?.defaultTransform?.scaleX
Say I want to build a ruler composable that displays a box that's exactly 10cm long.David Dupraz
07/14/2021, 4:32 PMJoey Heck
07/14/2021, 7:03 PMAyfri
07/15/2021, 6:40 AMTAB
key, I get this error
Exception in thread "AWT-EventQueue-0" kotlin.UninitializedPropertyAccessException: lateinit property layoutDirection has not been initialized
And it crashes
(full stacktrace in thread)NurBahnhof
07/15/2021, 10:49 AMtasks.named("createDistributable")
in gradle build file but it's not found?Ayfri
07/15/2021, 2:00 PMPreview
annotation in build 245 ?ppvi
07/15/2021, 2:20 PM[compose-jb/examples/codeviewer] $ ./gradlew :desktop:run
and getting
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /[...]/libskiko-linux-x64.so: libGL.so.1: cannot open shared object file: No such file or directory
READMEs don't mention anything about requirements and couldn't find "libGL.so.1" in the repo or this channel. Quick google search doesn't help either.Tim McCarthy
07/15/2021, 7:36 PM./gradlew createDistributable
, but not when running it by clicking the Run button inside IDEA or from the CLI with ./gradlew run
. What might be different between those environments?
(fuel is in the trace for context, but I ran into similar issues with okhttp3)
Caused by: java.net.SocketTimeoutException: Read timed out
java.base/sun.nio.ch.NioSocketImpl.timedRead(Unknown Source)
java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source)
java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source)
java.base/java.net.Socket$SocketInputStream.read(Unknown Source)
java.base/sun.security.ssl.SSLSocketInputRecord.read(Unknown Source)
java.base/sun.security.ssl.SSLSocketInputRecord.readHeader(Unknown Source)
java.base/sun.security.ssl.SSLSocketInputRecord.decode(Unknown Source)
java.base/sun.security.ssl.SSLTransport.decode(Unknown Source)
java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source)
java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
java.base/sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
com.github.kittinunf.fuel.toolbox.HttpClient.sendRequest(HttpClient.kt:145)
com.github.kittinunf.fuel.toolbox.HttpClient.doRequest(HttpClient.kt:79)
com.github.kittinunf.fuel.toolbox.HttpClient.executeRequest(HttpClient.kt:37)
xxfast
07/16/2021, 10:32 AM0.5.0-build245
takes forever to even just gradle sync?David Dupraz
07/17/2021, 7:17 PMspierce7
07/18/2021, 1:29 AMkevindmoore
07/18/2021, 5:37 AMRafs
07/18/2021, 4:06 PM