Updated on 2026-08-14

This commit is contained in:
Tangem 2022-04-23 11:47:01 +03:00
parent 4e49562a24
commit b8d67fd5b5

View file

@ -141,6 +141,11 @@ private fun AddCustomTokenFab(
} else {
Color(0xFFB9E6D3)
}
val elevation = if (!isEnabled) {
FloatingActionButtonDefaults.elevation(0.dp, 0.dp)
} else {
FloatingActionButtonDefaults.elevation()
}
ToggledRippleTheme(isEnabled) {
ExtendedFloatingActionButton(
@ -156,6 +161,7 @@ private fun AddCustomTokenFab(
onClick = { if (isEnabled) onClick() },
backgroundColor = backgroundColor,
contentColor = contentColor,
elevation = elevation,
)
}
}