• TheMrCodes

    TheMrCodes

    1 year ago
    Is there any way to measure a Composable before drawing without getting the siize aferward with .onSizeChanged?
    TheMrCodes
    Vitor Prado
    +1
    5 replies
    Copy to Clipboard
  • e

    eygraber

    1 year ago
    Is there a way to react to the progress of AnimatedVisibility? My use case is that I have a list of composable functions, and I want to animate additions and deletions to it, so I'm wrapping each item in an AnimatedVisibility. The problem as I understand it is that I can't delete a function from the list until the transition is finished (because then it won't get composed anymore; is that the proper terminology?). My idea is to mark the item as deleted, and remove it once the transition is complete, but I'm not 100% sure how to do that.
    e
    Doris Liu
    2 replies
    Copy to Clipboard
  • c

    Chris Grigg

    1 year ago
    Has anyone run into this? I posted it on Stack Overflow a couple weeks ago and nobody had anything to say https://stackoverflow.com/questions/66126551/jetpack-compose-centering-text-without-font-padding
    c
    Albert Chang
    5 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    Hello! My team has a custom type scale and therefore we're not using the material type system. Is there anything wrong with this code or is this pretty much how you set it up?
    private val Lato = FontFamily(
        Font(R.font.lato_regular, FontWeight.Normal),
        Font(R.font.lato_bold, FontWeight.Bold),
    )
    
    object MyTypeSystem {
        val head = TextStyle(
            fontFamily = Lato,
            fontSize = 18.sp,
            fontWeight = FontWeight.Normal
        )
        val body = TextStyle(
            fontFamily = Lato,
            fontSize = 12.sp,
            fontWeight = FontWeight.Bold
        )
    ...
    }
    Colton Idle
    j
    +1
    3 replies
    Copy to Clipboard
  • e

    eygraber

    1 year ago
    Is there a way to
    remember
    something mutable, but not cause a recomposition when it is mutated?
    e
    lewis
    +2
    7 replies
    Copy to Clipboard
  • krzysztof

    krzysztof

    1 year ago
    Is there a way to capture (any) touch event at parent level, so that child composables are not reacting to it?
    krzysztof
    steelahhh
    3 replies
    Copy to Clipboard
  • d

    Dieter Holz

    1 year ago
    loadImageResource is deprecated since alpha12. What’s the proper replacement? Does painterResource load the image in background?
    d
    Nader Jawad
    2 replies
    Copy to Clipboard
  • Shakil Karim

    Shakil Karim

    1 year ago
    I'm trying to use popUpTo with Navigating with Compose.
    popUpTo(Destination.OnboardingWelcomeScreen.route) { inclusive = true }
    But it giving me error because it's expecting int instead of String.
    Shakil Karim
    pawegio
    2 replies
    Copy to Clipboard
  • Kevin Aude

    Kevin Aude

    1 year ago
    Hi all, I’m wondering if there are any good examples out there showing how to load things off the main thread from inside a composable
    Kevin Aude
    m
    +2
    9 replies
    Copy to Clipboard
  • Kevin Aude

    Kevin Aude

    1 year ago
    My use case is: I pass a ResolveInfo object to my composable function and load an app name and icon from inside that composable, at the moment it’s super slow
    Kevin Aude
    jim
    5 replies
    Copy to Clipboard