commonMain.com.bselzer.ktx.compose.ui.layout.merge.FloatingActionButtonElevationMerger.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of compose-ui-layout-jvm Show documentation
Show all versions of compose-ui-layout-jvm Show documentation
Base extensions for laying out Compose Multiplatform UI.
package com.bselzer.ktx.compose.ui.layout.merge
import androidx.compose.foundation.interaction.InteractionSource
import androidx.compose.material.FloatingActionButtonElevation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
class FloatingActionButtonElevationMerger : ComponentMerger {
override val default: FloatingActionButtonElevation = Default
companion object {
@Stable
val Default = object : FloatingActionButtonElevation {
@Composable
override fun elevation(interactionSource: InteractionSource): State = mutableStateOf(0.dp)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy