Last active
May 4, 2025 16:04
-
-
Save zsoltk/ed86882c60f8cb0d6a79c4b0dc2b8bfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CardsTransitionHandler<T>( | |
private val transitionSpec: TransitionSpec<Cards.State, Float> = { | |
spring(stiffness = Spring.StiffnessVeryLow) | |
} | |
) : ModifierTransitionHandler<T, Cards.State>() { | |
private fun Cards.State.toProps() = | |
when (this) { | |
is Queued -> queued | |
is Bottom -> bottom | |
is Top -> top | |
is VoteLike -> voteLike | |
is VotePass -> votePass | |
} | |
override fun createModifier( | |
modifier: Modifier, | |
transition: Transition<Cards.State>, | |
descriptor: TransitionDescriptor<T, Cards.State> | |
): Modifier = modifier.composed { | |
val rotation = transition.animateFloat( | |
transitionSpec = transitionSpec, | |
targetValueByState = { it.toProps().rotation }) | |
val scale = transition.animateFloat( | |
transitionSpec = transitionSpec, | |
targetValueByState = { it.toProps().scale }) | |
val dpOffsetX = transition.animateFloat( | |
transitionSpec = transitionSpec, | |
targetValueByState = { it.toProps().offsetX.value }) | |
val zIndex = transition.animateFloat( | |
transitionSpec = transitionSpec, | |
targetValueByState = { it.toProps().zIndex }) | |
return@composed this | |
.offset { | |
IntOffset(x = (this.density * (dpOffsetX.value)).roundToInt(), y = 0) | |
} | |
.zIndex(zIndex.value) | |
.graphicsLayer( | |
rotationZ = rotation.value | |
) | |
.scale(scale.value) | |
} | |
} |
Hey all! The other night, I was just scrolling through random dating suggestions and ended up clicking on https://www.onadate.com/local-milfs.html. I didn’t have high hopes at first, but the vibe of the site really surprised me. It’s simple, focused, and easy to meet people who actually want to talk and connect. I liked that conversations weren't forced and everyone seemed genuinely interested in getting to know each other without endless small talk.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For a long time, it was difficult for me to meet girls. In regular apps, I had to filter out a lot of unnecessary options, and in life, it is not always clear which people share your views. I tried lesbian-hookup - and finally found a space where everything is clear and safe. It is easy to start conversations here, there are no unnecessary questions and misunderstandings. I have already met a couple of cool girls, and with one, it seems, even something more!