Skip to content

Commit

Permalink
Use actual defined defaultElevation in NewTransferFabType
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarX committed Aug 15, 2024
1 parent 2cde4b2 commit 8733f9b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enum class NewTransferFabType(val fabType: FabType, private val defaultElevation
@Composable
fun elevation(): FloatingActionButtonElevation {
return if (defaultElevation != null) {
FloatingActionButtonDefaults.elevation(defaultElevation = 0.dp)
FloatingActionButtonDefaults.elevation(defaultElevation)
} else {
FloatingActionButtonDefaults.elevation()
}
Expand Down

0 comments on commit 8733f9b

Please sign in to comment.