• Piotr Prus

    Piotr Prus

    1 year ago
    I am trying to make a bottomSheet that opens over mapView. Very similar to current behaviour of google maps. I have a problem with moving the map to the click location. Probably because BottomSheet opens over the map and not resize the mapview. When I move the map, it moves below. I am using
    BottomSheetScaffold
    . Is it a right component to use here? I put my detail data in
    sheetContent
    and mapView in
    bodyContent
    . Any idea how to deal with it? example behaviour: https://streamable.com/balbx
    Piotr Prus
    j
    6 replies
    Copy to Clipboard
  • Dirk Hoffmann

    Dirk Hoffmann

    1 year ago
    after upgrading lib versions I get weird compiler error on
    Icon(Icons.Filled...)
    kotlin 1.4.21-2 compose 0.3.0-build143
    import androidx.compose.material.Icon
    import androidx.compose.material.IconButton
    import androidx.compose.material.icons.Icons
    
    ...
    
            IconButton(onClick = { /* doSomething() */ }) {
                Icon(Icons.Filled.Lock)
            }
    None of the following functions can be called with the arguments supplied: 
    public fun Icon(bitmap: ImageBitmap, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
    public fun Icon(painter: Painter, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
    public fun Icon(imageVector: ImageVector, contentDescription: String?, modifier: Modifier = ..., tint: Color = ...): Unit defined in androidx.compose.material
    any ideas?
    Dirk Hoffmann
    k
    +1
    4 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    Is there compose release today?
    k
    jim
    7 replies
    Copy to Clipboard
  • Chethan

    Chethan

    1 year ago
    Do we have some thing similar to switch map for mutable state flow . I want to trigger network calls only some values changes ?
    Chethan
    s
    3 replies
    Copy to Clipboard
  • Jason Ankers

    Jason Ankers

    1 year ago
    Is it possible to create animations based on scroll position in compose? I want a background to fade away while the list scrolls
    Jason Ankers
    1 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    We’re getting crashes only for minified builds… Any idea how I could go about debugging this issue?
    a
    Cyril Find
    +2
    8 replies
    Copy to Clipboard
  • j

    julioromano

    1 year ago
    Does compose offer something similar to
    android:animateLayoutChanges="true"
    ?
    j
    a
    +2
    9 replies
    Copy to Clipboard
  • a

    allan.conda

    1 year ago
    Anyone had to debounce onClick lambdas yet in Compose? Or immediately disable a button to prevent multiple clicks. We hoisted the state into the ViewModel and there’s a gap where the user can still click the button again before it gets disabled. Been trying to think of ways to handle this.
    a
    krzysztof
    +1
    15 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    Modifier.navigationBarsWithImePadding()
    or
    Modifier.imePadding()
    from
    accompanist-insets
    does not apply to
    ConstraintLayout
    . Is this a bug or am I doing something wrong? Compose:
    1.0.0-alpha10
    accompanist:
    0.4.2
    k
    cb
    +1
    5 replies
    Copy to Clipboard
  • Francois Morvillier

    Francois Morvillier

    1 year ago
    I have a @Composable I want to be called at regular intervals (for instance once a second) to display some debug info. What's the best way to achieve this?
    Francois Morvillier
    1 replies
    Copy to Clipboard