Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
X1nto committed Mar 29, 2024
1 parent 6616fa3 commit 85cabb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ dependencies {
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.7.0")
implementation("androidx.activity:activity-compose:1.8.2")

val composeBom = platform("androidx.compose:compose-bom:2024.02.02")
val composeBom = platform("androidx.compose:compose-bom:2024.03.00")
implementation(composeBom)
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.material:material-icons-extended")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.with
import androidx.compose.animation.togetherWith
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
Expand Down Expand Up @@ -192,7 +192,9 @@ private fun RealtimeInformation(
targetValue = realtimeData.progress,
animationSpec = tween(500)
)
CircularProgressIndicator(progress)
CircularProgressIndicator(
progress = { progress },
)
Text(realtimeData.countdown.toString())
}
}
Expand All @@ -201,10 +203,10 @@ private fun RealtimeInformation(
targetState = code,
transitionSpec = {
if (initialState.first == targetState.first) {
slideIntoContainer(AnimatedContentTransitionScope.SlideDirection.Up) + fadeIn() with
slideIntoContainer(AnimatedContentTransitionScope.SlideDirection.Up) + fadeIn() togetherWith
slideOutOfContainer(AnimatedContentTransitionScope.SlideDirection.Up) + fadeOut()
} else {
slideIntoContainer(AnimatedContentTransitionScope.SlideDirection.Down) + fadeIn() with
slideIntoContainer(AnimatedContentTransitionScope.SlideDirection.Down) + fadeIn() togetherWith
slideOutOfContainer(AnimatedContentTransitionScope.SlideDirection.Down) + fadeOut()
}
},
Expand Down

0 comments on commit 85cabb3

Please sign in to comment.