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

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

There is a newer version: 7.0.0
Show newest version
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