• a

    alorma

    1 year ago
    Is there any "official" connection between Datastore and compose?
    a
    c
    3 replies
    Copy to Clipboard
  • FunkyMuse

    FunkyMuse

    1 year ago
    hey guys, I'm fighting with this error, any help would be appreciated I only bumped the compose version to 1.0.0, my gradle file link https://github.com/FunkyMuse/Aurora/blob/main/build.gradle Using the latest stable arctic fox studio
    androidx.compose.compiler.plugins.kotlin.IncompatibleComposeRuntimeVersionException: You are using an outdated version of Compose Runtime that is not compatible with the version of the Compose Compiler plugin you have installed. The compose compiler plugin you are using (version 1.0.0) expects a minimum runtime version of 1.0.0. The version of the runtime on the classpath currently is 1.0.0-rc01.
    FunkyMuse
    1 replies
    Copy to Clipboard
  • Fanilog

    Fanilog

    1 year ago
    Trying to understand how LazyList works under the hood but it’s not that easy. 🤔 Is there anyone knows how the recycling works in a LazyColumn? Do items get recomposed or do they just exit the composition and new one are created ? And finally what would be the effect of using
    DisposableEffect
    inside a composable used by a LazyList in the case the items are reused? 🙏
    Fanilog
    Chuck Jazdzewski [G]
    +3
    11 replies
    Copy to Clipboard
  • Csaba Kozák

    Csaba Kozák

    1 year ago
    Hey everyone, I am implementing a map-heavy application. I am following the Crane sample to set up the
    MapView
    . I am trying to move the camera as the user is sliding up a bottom sheet. The problem is that if i change the camera position according to the offset with
    GoogleMap.moveCamera()
    , the maps moves really laggy. Calling
    GoogleMap.setPadding()
    is smooth though. Can anyone help me with this? Thanks in advance!
    Csaba Kozák
    1 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    I have a question about a behavior that I didn't expect. 1. I have a
    @Composable
    fun ForgotPasswordScreen(successEvent: () -> Unit, vm: ForgotPasswordScreenViewModel){
    ...
      ~buttonOnClick {
        vm.makeNetworkCall(successEvent)
      }
    ...
    }
    2. successEvent: () -> Unit, is a navigational event that takes me back to SignInScreen 3. ForgotPasswordScreenViewModel has
    fun makeNetworkCall(onNetworkCallCompletedSuccessfully: () -> Unit)
    and on completion of the network call,
    if (call.isSuccessful) successEvent()
    When I throttle the network call (for testing) it takes like 10 seconds, and I background the app, wait 20+ seconds... and I come back in the app, I can see that the app navigated successfully and the SignInScreen is showing. I guess I was wrong in thinking that the successEvent() wouldn't have any action since the app was backgrounded?
    Colton Idle
    Albert Chang
    2 replies
    Copy to Clipboard
  • i

    Ink

    1 year ago
    I want to create view like that below. I try:
    @Composable
    fun SearchBar(label: String) {
        RateMeAppTheme(isSystemInDarkTheme()) {
            Row(
                modifier = Modifier
                    .fillMaxWidth()
                    .wrapContentHeight()
                    .background(MaterialTheme.colors.onBackground)
                    .clip(RoundedCornerShape(20.dp))
                    .padding(20.dp)
            ) {}
        }
    }
    but I get rectangle max width without rounded corners. Why?
    i
    Chris Sinco [G]
    3 replies
    Copy to Clipboard
  • K Merle

    K Merle

    1 year ago
    Compose question. Once user authenticates, how do I remove authentication compose screens to not be in stack anymore? Multiple activities (e.g. AuthenticationActivity, ContentActivity) ?
    K Merle
    Colton Idle
    +2
    7 replies
    Copy to Clipboard
  • Shakil Karim

    Shakil Karim

    1 year ago
    Is there any performance Improvement in Compose 1.0? I just update my App on Play Store and I noticed slightly better performance. btw I am not using Lazy* Composable, the last time I used it had poor performance on older devices hopefully it improved as well 👍
    Shakil Karim
    m
    +5
    9 replies
    Copy to Clipboard
  • Colton Idle

    Colton Idle

    1 year ago
    I'm an animation noob so please excuse me if this comes off as trivial. I have a little tutorial screen I'm making and there is a rubber duck in the center :rubber_duck: and my requirements are to make it "bob" up and down slightly, on an infinite loop. I would have typically maybe considered this using MotionLayout, but is there an easy way to animate this kind of bobbing effect in compose?
    Colton Idle
    Tash
    +3
    45 replies
    Copy to Clipboard
  • n

    nonameden

    1 year ago
    Hello, I have tried to rebuild my custom progress bar in compose but faced issue, delay in TweenSpec works not as expected:
    val transition = rememberInfiniteTransition()
    val value = transition.animateFloat(
            0.5f,
            1f,
            infiniteRepeatable(
                repeatMode = RepeatMode.Reverse,
                animation = tween(
                    durationMillis = 650,
                    delayMillis = 160,
                    easing = BezierEasing
                )
            )
        )
    it applies delay on each iterate, is there any legit way to delay only first iterate? like startDelay in ValueAnimator?
    n
    Doris Liu
    6 replies
    Copy to Clipboard