• Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    I’m seeing some behavior that I think might be a bug. It seems like LayoutModifiers are only being calculated when they’re first applied to a node, and any changes in subsequent compositions don’t actually update the layout. E.g. I’m trying to move a composable around by passing a custom
    Alignment
    implementation that just takes a fraction and aligns to that fraction of the parent. The initial alignment is calculated correctly, but when the fraction changes in subsequent compositions, the composable’s position doesn’t change. Will file soon.
    Zach Klippenstein (he/him) [MOD]
    Mihai Popa
    4 replies
    Copy to Clipboard
  • v

    Vinay Gaba

    1 year ago
    Noticing some weird behavior where my UI tests pass on the emulator but fail on the device. I’m doing a super basic check -
    composeTestRule.onNodeWithText("Title").assertExists()
    v
    a
    4 replies
    Copy to Clipboard
  • Kyant

    Kyant

    1 year ago
    Crashed when using
    webContext.goBack()
    to handle back press in WebView.
    java.lang.IllegalStateException: KeyEvent can't be processed because this key input node is not active.
    at androidx.compose.ui.input.key.KeyInputModifier.processKeyInput(KeyInputModifier.kt:62)
    at androidx.compose.ui.platform.AndroidComposeView.sendKeyEvent(AndroidComposeView.kt:196)
    at androidx.compose.ui.platform.AndroidComposeView.dispatchKeyEvent(AndroidComposeView.kt:200)
    Is something wrong? I remember it won't crash before.
    Kyant
    d
    2 replies
    Copy to Clipboard
  • Davide Giuseppe Farella

    Davide Giuseppe Farella

    1 year ago
    What’s the replacement for
    Modifier.align
    on alpha 4?
    Davide Giuseppe Farella
    Zach Klippenstein (he/him) [MOD]
    7 replies
    Copy to Clipboard
  • Michal Harakal

    Michal Harakal

    1 year ago
    What are simple samples showing the power of kotlin compiler plugin for jetpack compose, enabling language constructs not possible with standard kotlin language? I am preparing a talk about kotlin compiler plugins and jetpack compose comes as the first on my mind …
    Michal Harakal
    shikasd
    2 replies
    Copy to Clipboard
  • p

    pardom

    1 year ago
    Is there an example of animating away a list item? I’m using SwipeToDismiss and it animates the previous item in the list when recovering. Here’s the relevant code:
    p
    gildor
    +1
    6 replies
    Copy to Clipboard
  • pavi2410

    pavi2410

    1 year ago
    In other words, is it even possible to reset the applied Modifiers? Like in CSS? It can be useful to tweak existing composables components
    pavi2410
    1 replies
    Copy to Clipboard
  • nlindberg

    nlindberg

    1 year ago
    Anyone tried getting the following error when using ScrollableColumn composable: (version: ‘1.0.0-alpha04’)
    java.lang.IllegalStateException: Reading a state that was created after the snapshot was taken or in a snapshot that has not yet been applied
    nlindberg
    Rudolf Tammekivi
    +1
    5 replies
    Copy to Clipboard
  • Nat Strangerweather

    Nat Strangerweather

    1 year ago
    Hi, what am I doing wrong here? I am trying to use the SpaceBetween arrangement but both Strings are stuck on the left of my screen:
    @Composable
    fun PriorityOptions() {
        ScrollableColumn(
            modifier = Modifier.fillMaxWidth()
                .fillMaxHeight()
                .padding(start = 20.dp, end = 20.dp),
    
            ) {
            Spacer(Modifier.preferredHeight(50.dp))
            Text(text = "Priority Options", style = typography.h1)
            Spacer(Modifier.preferredHeight(50.dp))
            Row(horizontalArrangement = Arrangement.SpaceBetween) {
                Text("Start")
                Text("End")
            }
        }
    Nat Strangerweather
    f
    3 replies
    Copy to Clipboard
  • z

    zoha131

    1 year ago
    How can I detect if software keyboard is visible in the screen or not?
    z
    Archie
    +1
    6 replies
    Copy to Clipboard