• Sergey Y.

    Sergey Y.

    2 years ago
    Hi everyone. Does Compose already have something similar to
    Hero Animation
    from
    Flutter
    or
    Shared Element Transition
    from
    Android SDK
    ?
    Sergey Y.
    1 replies
    Copy to Clipboard
  • n

    nglauber

    2 years ago
    How can I change my state without pass a callback deep down into my composable “hierarchy”. I mean… I have a state on my composable
    A
    and this composable calls
    B
    which calls
    C
    . Is there a way to change the state in
    C
    ? When we had
    @Model
    we just need to update attribute and it worked…
    n
    Adam Powell
    3 replies
    Copy to Clipboard
  • a

    AG

    2 years ago
    Hello, can someone help me to figure out how to make
    LazyRowItems
    with
    wrap content
    inside
    LazyColumnItems
    work correctly. In this example I have a row with images where each image has width 100dp. When I’m not passing modifier value with height in
    LazyRowItems
    it shows only one row and Text is not rendering , also it’s possible to scroll the page, but when I’m passing modifier with
    preferredHeight
    all works correctly,
    wrapContentHeight
    not working also.
    LazyColumnItems(items = List(size = 30, init = { it })) { column ->
        if (column % 2 == 0) {
            LazyRowItems(
                items = List(size = 30, init = { it })
                //modifier = Modifier.preferredHeight(100.dp)
            ) { row ->
                Image(
                    asset = imageAsset,
                    modifier = Modifier.wrapContentHeight(100.dp).aspectRatio(1f)
                )
            }
        } else {
            Text(text = "$column")
        }
    }
    a
    Andrey Kulikov
    2 replies
    Copy to Clipboard
  • n

    nglauber

    2 years ago
    New question 😛 : Is there a way to save the scroll position of a
    LazyColumnItems
    ? I’m using a
    TabRow
    to display two tabs and each one display a list of content. When I swap between the tabs, the scroll position of the list is lost.
    n
    Timo Drick
    6 replies
    Copy to Clipboard
  • andylamax

    andylamax

    2 years ago
    Is there a current implemented NavigationDrawer in compose?
    andylamax
    1 replies
    Copy to Clipboard
  • Brady Aiello

    Brady Aiello

    2 years ago
    Yes
    Brady Aiello
    1 replies
    Copy to Clipboard
  • m

    Madhava

    2 years ago
    Does anyone know if the MaterialTheme or Ripple effects can be disabled. They seem to be quite laggy on the current versions and I was wondering if they can simply be turned off to improve performance?
    m
    r
    +1
    14 replies
    Copy to Clipboard
  • h

    Harish Gupta

    2 years ago
    Hi, Is there any way to set different background colors for the surface composable from the one defined in the color palette in the material theme? All surface composable background takes the same color as declared in the theme, but what if I want to have a different background color for different surface composable.
    h
    r
    3 replies
    Copy to Clipboard
  • a

    allan.conda

    2 years ago
    Want to use savedInstanceState extension in a Compose fragment and realized it doesn’t work. Anyone who tried it and made it work?
    a
    m
    +6
    15 replies
    Copy to Clipboard
  • bohregard

    bohregard

    2 years ago
    Is there a maxHeight constraint? I could’ve swore there was one before, but now I can’t seem to find anything related to max height/width just min.
    bohregard
    b
    2 replies
    Copy to Clipboard