Skip to content

Commit

Permalink
fix: default animationDuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rl3x committed Apr 6, 2021
1 parent 4228114 commit 37f119c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion speeddial/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apply from: '../buildCompose.gradle'

ext {
PUBLISH_GROUP_ID = 'de.charlex.compose'
PUBLISH_VERSION = '1.0.0-alpha01'
PUBLISH_VERSION = '1.0.0-alpha02'
PUBLISH_ARTIFACT_ID = 'speeddial'
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fun SpeedDialFloatingActionButton(
modifier: Modifier = Modifier,
initialExpanded: Boolean = false,
onClick: (SpeedDialData?) -> Unit,
animationDuration: Int = 1000,
animationDuration: Int = 300,
animationDelayPerSelection: Int = 100,
speedDialData: List<SpeedDialData>,
showLabels: Boolean = false,
Expand All @@ -63,8 +63,7 @@ fun SpeedDialFloatingActionButton(
) {
var expanded by remember { mutableStateOf(initialExpanded) }

val transition =
updateTransition(label = "multiSelectionExpanded", targetState = expanded)
val transition = updateTransition(label = "multiSelectionExpanded", targetState = expanded)

val speedDialAlpha = mutableListOf<State<Float>>()
val speedDialScale = mutableListOf<State<Float>>()
Expand Down

0 comments on commit 37f119c

Please sign in to comment.