• popalay

    popalay

    2 years ago
    Hey. In dev17 CoroutineContextAmbient has gone. What is the replacement?
    popalay
    Adam Powell
    2 replies
    Copy to Clipboard
  • w

    William Barbosa

    2 years ago
    Our app is pretty happy about dev17 😂

    https://user-images.githubusercontent.com/535613/90730646-c2566580-e2c8-11ea-8af1-7aeb1556a860.gif

    w
    Mehdi Haghgoo
    +1
    4 replies
    Copy to Clipboard
  • t

    Theo

    2 years ago
    is there an easier way of going through and replacing all the module name changes? some packages I have no idea which package a component is supposed to come from
    t
    aiidziis
    3 replies
    Copy to Clipboard
  • d

    Daniele B

    2 years ago
    Any idea what’s wrong with this?
    d
    v
    +3
    9 replies
    Copy to Clipboard
  • g

    Guy Bieber

    2 years ago
    Idea. It would be nice to have a lint check or a way to designate that compose function is expected to start with a row or column.
    g
    r
    4 replies
    Copy to Clipboard
  • amar_1995

    amar_1995

    2 years ago
    I am using avedInstanceStatein dev14 but getting this error
    cannot be saved using the current UiSavedInstanceStateRegistry. The default implementation only supports types which can be stored inside the Bundle. Please consider implementing a custom Saver for this class and pass it to savedInstanceState() or rememberSavedInstanceState()
    amar_1995
    Zach Klippenstein (he/him) [MOD]
    +1
    20 replies
    Copy to Clipboard
  • f

    farzad

    2 years ago
    How can I close drawer on back pressed?
    f
    1 replies
    Copy to Clipboard
  • m

    Mohamed Elfiky

    2 years ago
    i am trying to use animateContentSize but i think i am doing it wrong
    LazyColumn(modifier = Modifier.fillMaxWidth()) {
        items((0..30).toList()) {
            var isExpanded by remember { mutableStateOf(false) }
            Surface(
                color = MaterialTheme.colors.primary,
                shape = CircleShape
            ) {
                Row(modifier = Modifier.animateContentSize()) {
                    IconButton(onClick = { isExpanded = !isExpanded }) {
                        Icon(asset = Icons.Default.AccessTime, tint = Color.White)
                    }
    
                    if (isExpanded) {
                        Text(
                            modifier = Modifier.gravity(Alignment.CenterVertically)
                                .padding(end = 16.dp),
                            text = "some text",
                            style = MaterialTheme.typography.caption,
                            color = Color.White
                        )
                    }
                }
            }
            Spacer(modifier = Modifier.height(8.dp))
        }
    }
    this code make the icons disappear on scrolling and is very lag, but when i put the animateContentSize on the surface it works but the animation is not like the above one. this code is put in another compose but i extract it to see the problem.
    m
    Zach Klippenstein (he/him) [MOD]
    +1
    15 replies
    Copy to Clipboard
  • Halil Ozercan

    Halil Ozercan

    2 years ago
    What is the latest recommended way of loading images in lazy lists? edit: Both from resources and URL
    Halil Ozercan
    v
    3 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    2 years ago
    What is the difference between
    var count = remember {mutableStateOf(0)}
    and
    var count by state {0}
    ?
    Mehdi Haghgoo
    m
    2 replies
    Copy to Clipboard