• Colton Idle

    Colton Idle

    1 year ago
    If I have a column with alignment set to center. Is there a way for an item in the column to opt out of this? I want everything in my column to be centered except one item. Thoughts?
    Column(
        horizontalAlignment = Alignment.CenterHorizontally,
    Colton Idle
    a
    +3
    15 replies
    Copy to Clipboard
  • d

    Daniele B

    1 year ago
    A Preview (not available in the repo) of the new D-KMP Navigation for Compose, which will work on any platform: Android, Web, Desktop. The navigation logic is hosted in the shared-code, and will apply also to SwiftUI. Any feedback is welcome.
    d
    andylamax
    +1
    12 replies
    Copy to Clipboard
  • r

    robnik

    1 year ago
    What's the right way to delete an item in your model, when using
    SwipeToDismiss
    ? The example here does not show it. I'm trying
    LaunchedEffect(dismissState.currentValue) {...}
    , but there is a little delay that I don't like. More in thread...
    r
    Doris Liu
    7 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    My team raised me a question regarding compose navigation and deeplinks which I was not able to answer. Let’s say we have 2 independent feature modules, A and B. a screen from A can navigate to a screen from B. I call the nav graph of B from the top-level module so it has access to the B’s Screen composables, without having A depend directly on B. We would like a deep link navigation to B with a simulated backstack as if B was opened from a screen in A. Is this possible with this kind of setup?
    a
    i
    10 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    <another topic> Not sure if this is a bug or I did something illegal, but the stacktrace is hard to understand. I’m trying to dispose the ServiceConnection but the app crashes when the composable is disposed. Code and the exception in the thread 👇
    a
    3 replies
    Copy to Clipboard
  • a

    alexsullivan114

    1 year ago
    I'm trying to mimic the twitter "like count" animation (not the heart, just the count going up). I'm attempting to trigger that animation if the like count is different from the previous like count. So here's some examples code. Let's say I have some class representing likes:
    data class Like(val count: Int)
    And some composable that renders the like count:
    @Composable
    fun LikeText(like: Like) {
        Text("${like.count}"
    }
    I want to trigger some animation if the like.count value has changed. How would I go about doing that?
    a
    k
    +1
    24 replies
    Copy to Clipboard
  • Nat Strangerweather

    Nat Strangerweather

    1 year ago
    I also have a question about animations. I am using an infinite transition and I want my tiles to travel at the same speed. At the moment they are catching each other up because the durationMillis value is the same for all. How can I get them to all travel at the same speed? Please see gif in thread.
    Nat Strangerweather
    Doris Liu
    10 replies
    Copy to Clipboard
  • n

    nglauber

    1 year ago
    Dummy question… Do I have to pass my
    navController
    to all my screens (of course if I want to navigate to somewhere else from that screen)? Should I create a
    compositionLocalOf
    for it?
    n
    a
    +2
    20 replies
    Copy to Clipboard
  • t

    Tolriq

    1 year ago
    Is there any ETA for shared transitions in Compose? That's the missing piece for me for now 😞 (By ETA I mean 1.0 or later or it will be decorrelated from 1.0 in distinct library)
    t
    Doris Liu
    2 replies
    Copy to Clipboard
  • Alexa_Gal

    Alexa_Gal

    1 year ago
    Hi guys i have some issues with navigation and maybe im doing it all wrong. I have a stack app that have a bottomBar on it. All works as expected i can push from login to next screen and show the 3 screens BottomNavigationBar. My issue is that every time i change tabs. my components are recomposed eventho i have set this on the navBottomNavigationItem
    launchSingleTop = true
    . if i only run the 3 screens NavigationBar screen without any page before on the stack they are NOT recomposed every time i change the tab. have any of you seen this issue before?
    Alexa_Gal
    a
    +2
    20 replies
    Copy to Clipboard