Skip to content

Commit

Permalink
app模块更名为samples
Browse files Browse the repository at this point in the history
  • Loading branch information
yihaoBeta committed Jul 18, 2023
1 parent fc63712 commit 5844a32
Show file tree
Hide file tree
Showing 34 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.yihao.library.extensions

import androidx.compose.animation.core.InfiniteRepeatableSpec
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.animation.core.tween
Expand All @@ -14,7 +16,10 @@ fun Modifier.infiniteRotate(): Modifier = composed {
val rotate by infiniteTransition.animateFloat(
initialValue = 0F,
targetValue = 360F,
animationSpec = InfiniteRepeatableSpec(animation = tween(durationMillis = 1000))
animationSpec = InfiniteRepeatableSpec(
animation = tween(durationMillis = 1000, easing = LinearEasing),
RepeatMode.Restart
)
)
this.then(Modifier.rotate(rotate))
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ dependencyResolutionManagement {
}
}
rootProject.name = "ComposeTools"
include ':app'
include ':samples'
include ':library'

0 comments on commit 5844a32

Please sign in to comment.