• Adrian Landborn

    Adrian Landborn

    1 year ago
    Anyone using the latest Lottie lib for compose? com.airbnb.android:lottie-compose:1.0.0-beta07-1 I get build issues when trying to fetch dependencies.
    Adrian Landborn
    Abdalla Hassanin
    2 replies
    Copy to Clipboard
  • Spikey Sanju

    Spikey Sanju

    1 year ago
    [ Resolved]. Hello all, When I pass these unit functions for
    TapGestures
    I really see a
    performance issue
    . Why is it happening? Is there any way optimise performance? For ex - When I tap
    LazyColumn Item
    it will goto
    details screen
    . But now it takes
    1s to navigate to details screen
    . When remove those functions & use clickable to goto details screen it’s working fine!
    Spikey Sanju
    Zach Klippenstein (he/him) [MOD]
    4 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    How do I make something like this but wrap the height to get rid of the extra space? I understand it's because of the
    aspectRatio(1f)
    but whatever height I use, the arc only fills half of it. Code in thread.
    s
    Albert Chang
    3 replies
    Copy to Clipboard
  • f

    Felipe Passos

    1 year ago
    Hello, how do i make this idea work : api.stream is reading a websocket, the idea is to update a variable every time it receives a websocket message.
    f
    s
    +1
    24 replies
    Copy to Clipboard
  • iamthevoid

    iamthevoid

    1 year ago
    I want to collect
    navController.currentBackStackEntryFlow
    and must to do it in CoroutineScope. I have few questions1. Where can I read about relation of coroutines and composables 2. Where better to collect this flow? Looks like there are mechanisms in compose to handle coroutines, but i am not sure that good practice to do as i did. 3. Even if it is good practice - what is better to use as key for
    LaunchedEffect
    ? I select activity, but it seems meaningless
    iamthevoid
    Dominaezzz
    +2
    7 replies
    Copy to Clipboard
  • Daniele Segato

    Daniele Segato

    1 year ago
    I'm trying to use
    Layout
    for the first time I've set myself to build a fairly straight forward widget, but with a small circular dependency 2 components (the name is to help imagining but they can be whatever): • field • button the
    button
    can decide its own width but must match
    field
    height the
    field
    can decide its own height but must leave room for the
    button
    in it's width (
    maxWidth - button.width
    ) the idea is the component will show the field and the button side by side filling width and wrapping height using the field. As far as I understood I can measure all components only once. If I measure
    field
    first I can adjust
    button
    width accordingly but I cannot make its height match
    field
    If I measure
    button
    first I can know it's width but I cannot tell it to take as much height as the
    field
    Can someone enlighten me on how to overcome a situation like this with Layout? thanks
    Daniele Segato
    Zach Klippenstein (he/him) [MOD]
    2 replies
    Copy to Clipboard
  • d

    dimsuz

    1 year ago
    Hi! Two questions: 1. Does
    @Stable
    imply
    @Immutable
    or vice versa? 2. If I have a
    data class
    which contains only vals (which are either other data classes or privitives or non-mutable collection types), does it mean that Compose compiler plugin will be able to infer @Stable/@Immutable automatically? I found an earlier thread that seemed to suggest that. 3. It would be great if both of these points were somehow covered in documentation (or did I miss that?)
    d
    Adam Powell
    +1
    8 replies
    Copy to Clipboard
  • b

    Bradleycorn

    1 year ago
    Is there an (out of the box) way to create an Expanding BottomSheet, as defined in the Material Specs?https://material.io/components/sheets-bottom#expanding-bottom-sheet
    b
    Erlan Amanatov
    +1
    6 replies
    Copy to Clipboard
  • n

    nglauber

    1 year ago
    I’m trying to change the status bar color using accompanist library, but no success… 😕
    val systemUiController = rememberSystemUiController()
    val useDarkIcons = MaterialTheme.colors.isLight
    
    SideEffect {
        systemUiController.setStatusBarColor(
            color = Color.Red,
            darkIcons = useDarkIcons
        )
    }
    MyComposable()
    n
    cb
    +1
    14 replies
    Copy to Clipboard
  • Rooparsh

    Rooparsh

    1 year ago
    Hi all, I have been trying my hands on Compose recently and stumbled upon
    TextField
    API. I noticed some issue in the one of the API approach. The cursor doesn't move forward as the value gets updated. Attaching a video as reference. Its the one which accepts TextFieldValue Am I missing here something ??
    Rooparsh
    Colton Idle
    11 replies
    Copy to Clipboard