All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.Utils.kt Maven / Gradle / Ivy

Go to download

Unstyled, fully accesible Compose Multiplatform components that you can customize to your heart's desire.

There is a newer version: 1.19.1
Show newest version
package com.composables.core

import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.runtime.Composable
import androidx.compose.ui.input.key.Key

internal data class KeyDownEvent(val key: Key)

@Composable
internal expect fun KeyDownHandler(onEvent: (KeyDownEvent) -> Boolean)

internal val AppearInstantly: EnterTransition = fadeIn(animationSpec = tween(durationMillis = 0))
internal val DisappearInstantly: ExitTransition = fadeOut(animationSpec = tween(durationMillis = 0))




© 2015 - 2024 Weber Informatics LLC | Privacy Policy