• Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    1 year ago
    The amount of special-casing that seems to be needed specifically to support ripples – someone at google must have very strong feelings about them 😂 Do any other compose operations happen on the render thread (e.g.
    graphicsLayer
    changes that don’t require recomposition perhaps)?
    Zach Klippenstein (he/him) [MOD]
    i
    +4
    33 replies
    Copy to Clipboard
  • Walter Berggren

    Walter Berggren

    1 year ago
    Hi!
    onValueChangeFinished
    for Slider doesn’t seem to be behaving I expect it to. I expect it to be called a single time once the user has finished dragging, but it is also called at the very beginning of a user drag. Is this the intended behavior?
    Walter Berggren
    matvei
    3 replies
    Copy to Clipboard
  • Samir Basnet

    Samir Basnet

    1 year ago
    Faced this error after upgrading to beta 04
    java.lang.NoSuchFieldError: No static field Companion of type Landroidx/compose/foundation/layout/BoxScope$Companion; in class Landroidx/compose/foundation/layout/BoxScope; or its superclasses (declaration of 'androidx.compose.foundation.layout.BoxScope' appears in /data/app/com.view9.mahal-Zh5TQ66RD7sgpFKhGyXOyg==/base.apk)
    at com.google.accompanist.pager.Pager.Pager(Pager.kt:461)
    at com.google.accompanist.pager.Pager.HorizontalPager(Pager.kt:147)
    Samir Basnet
    Filip Wiesner
    5 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    Anyone know the equivalent of nested navigation arguments in Jetpack XML Navigation on compose-navigation?
    <navigation>
      <navigation>
        <argument... />
        <fragment />
      </navigation>
    </navigation>
    I know that arguments inside
    <fragment>
    can be translated as
    composable(
      route = "screenA",
      arguments = listOf(navArgument(...)),
    ) { ... }
    But I’m not sure how we can pass arguments to a nested navigation itself which encapsulates its start destination.
    a
    1 replies
    Copy to Clipboard
  • n

    nitrog42

    1 year ago
    Hello, I'm currently switching the main screen of my current project to Compose, and I'm looking for a way to do get the height from a composable to use it in another :
    Box {
        Column(Modifier.padding(bottom = /* height of the snackbar*/)) {
            //content
        }
        Snackbar {
            Text("My text")
        }
    }
    what is the best method to do that? a custom layout ? Do you have any resources that could show me some code sample about this?
    n
    Filip Wiesner
    +1
    57 replies
    Copy to Clipboard
  • Marcin Środa

    Marcin Środa

    1 year ago
    Hi, I’m looking at the compose testing part, and thinking is it possible to check if some local providers are set.
    Marcin Środa
    1 replies
    Copy to Clipboard
  • YASAN

    YASAN

    1 year ago
    Using Compose Navigation library, I am trying to override
    onBackPressed
    to not let the user exit the app (its a launcher so that's the expected behavior). But I have not found a way to check if the current destination is the main/last destination or if back stack is empty so I dont call
    super.onBackpressed
    on that condition.
    YASAN
    i
    19 replies
    Copy to Clipboard
  • d

    David Edwards

    1 year ago
    Has there been any discussion as to when Compose will be implementable outside of Canary AS?
    d
    Colton Idle
    +1
    7 replies
    Copy to Clipboard
  • n

    nitrog42

    1 year ago
    Btw, is there anyone here that has or is planning to use Compose in a production app ? Sorry if it's something that has already been asked/asked regularly
    n
    Zach Klippenstein (he/him) [MOD]
    +1
    16 replies
    Copy to Clipboard
  • Yuri Drigin

    Yuri Drigin

    1 year ago
    I have a dumb question:
    val tokens = viewModel.tokens.observeAsState(listOf())
    I use mock viewModel for preview with hardcoded livedata
    override val stables: LiveData<List<StableTokenWithMetaAndRate>> = liveData {
      listOf(StableTokenWithMetaAndRate.USDp, StableTokenWithMetaAndRate.EURp)
    }
    However in the preview show me an empty list (((
    Yuri Drigin
    Zach Klippenstein (he/him) [MOD]
    +2
    7 replies
    Copy to Clipboard