-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/MZ-176-ledger-filter
# Conflicts: # core/ui/src/main/res/values/strings.xml # feature/navigator/src/main/java/com/susu/feature/navigator/MainNavigator.kt # feature/navigator/src/main/java/com/susu/feature/navigator/MainScreen.kt # feature/received/src/main/java/com/susu/feature/received/navigation/ReceivedNavigation.kt # feature/received/src/main/java/com/susu/feature/received/received/ReceivedScreen.kt # feature/received/src/main/res/values/strings.xml
- Loading branch information
Showing
14 changed files
with
576 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
core/ui/src/main/java/com/susu/core/ui/extension/AnimatedContentTransitionScope.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.susu.core.ui.extension | ||
|
||
import androidx.compose.animation.AnimatedContentTransitionScope | ||
import androidx.compose.animation.ContentTransform | ||
import androidx.compose.animation.core.tween | ||
import androidx.compose.animation.togetherWith | ||
|
||
fun <S> AnimatedContentTransitionScope<S>.susuDefaultAnimatedContentTransitionSpec(leftDirectionCondition: Boolean): ContentTransform { | ||
val direction = if (leftDirectionCondition) { | ||
AnimatedContentTransitionScope.SlideDirection.Left | ||
} else { | ||
AnimatedContentTransitionScope.SlideDirection.Right | ||
} | ||
return slideIntoContainer( | ||
towards = direction, | ||
animationSpec = tween(500), | ||
) togetherWith slideOutOfContainer( | ||
towards = direction, | ||
animationSpec = tween(500), | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.