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

commonMain.com.bselzer.ktx.compose.ui.layout.merge.ButtonElevationMerger.kt Maven / Gradle / Ivy

There is a newer version: 6.5.0
Show newest version
package com.bselzer.ktx.compose.ui.layout.merge

import androidx.compose.foundation.interaction.InteractionSource
import androidx.compose.material.ButtonElevation
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 ButtonElevationMerger : ComponentMerger {
    override val default: ButtonElevation = Default

    companion object {
        @Stable
        val Default = object : ButtonElevation {
            @Composable
            override fun elevation(enabled: Boolean, interactionSource: InteractionSource): State = mutableStateOf(0.dp)
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy