ziv kesten
10/30/2020, 9:27 PMIan Lake
10/30/2020, 9:28 PMziv kesten
10/30/2020, 9:30 PMziv kesten
10/30/2020, 9:31 PMIan Lake
10/30/2020, 9:36 PMIan Lake
10/30/2020, 9:37 PMIan Lake
10/30/2020, 9:37 PMziv kesten
10/30/2020, 9:46 PMColton Idle
10/30/2020, 10:45 PMGuy Bieber
10/30/2020, 11:02 PMGuy Bieber
10/30/2020, 11:03 PMIan Lake
10/31/2020, 12:51 AMIan Lake
10/31/2020, 12:57 AMAnimatedVisibility
(https://developer.android.com/reference/kotlin/androidx/compose/animation/package-summary#AnimatedVisibility(kotlin.Boolean,%20androidx.compose.ui.Modifier,%20androidx.compose.animation.EnterTransition,%20androidx.compose.animation.ExitTransition,%20kotlin.Boolean,%20kotlin.Function0)) which already has the concept of entering and exiting transitions is going to be the easiest / most concise implementation that will cover the 90% of cases, but I'm equally interested in what those 10% cases areDoris Liu
10/31/2020, 1:00 AMDoris Liu
10/31/2020, 1:07 AMAnimatedVisibility
that @Ian Lake linked above. ๐ziv kesten
10/31/2020, 5:21 AMnavController.navigate(
destination: T,
enter: NavigationAnimationType,
exit: NavigationAnimationType,
)
Where NavigationAnimationType is some enum or sealed class with types like crossfade, crossBlur (like with the login screen mentionedIan Lake
10/31/2020, 5:30 AMnavigate
time? Or as part of your composable
?
composable("profile", enterAnimation=fadeIn(), exitAnimation=fadeOut()) { }
ziv kesten
10/31/2020, 5:40 AMnavController.navigate(
destination: T,
enter: NavigationAnimationType,
exit: NavigationAnimationType,
)
ziv kesten
10/31/2020, 5:40 AMAlso i was thinking how awsome it could be to provide a list of composables as shred ellemnt transitions.
They would be included in both the enter and the exit composables but with diffrent modifier and the system would animate between the modifiers.
navController.
fun navigate(
destination: T,
vararg sharedElement: @Composable () -> Unit) {
}
ziv kesten
10/31/2020, 5:41 AMfun navigate(
destination: T,
enter: NavigationAnimationType,
exit: NavigationAnimationType,
vararg sharedElement: @Composable () -> Unit) {
}
Ian Lake
10/31/2020, 5:52 AMIan Lake
10/31/2020, 5:54 AMnavigate
time is around the exiting side of things given that you could rotate your screen (/any config change) or go through process death+recreation before you actually exit. That is extremely limiting in what we can store to actually consistently run when you exitIan Lake
10/31/2020, 5:56 AMziv kesten
10/31/2020, 7:33 AMIan Lake
10/31/2020, 2:05 PMnavigate()
is at entering time; your app code isn't involved when the user hits the system back button when using NavController and that system back button press can be arbitrarily later than the enterziv kesten
10/31/2020, 2:21 PMJavier
10/31/2020, 8:46 PMandroid:configChanges="orientation|screenLayout"
Javier
10/31/2020, 8:47 PMIan Lake
10/31/2020, 8:49 PMColton Idle
11/01/2020, 2:29 AMDoris Liu
11/02/2020, 8:50 PMdagomni
11/03/2020, 10:31 AMGuy Bieber
11/05/2020, 9:11 PMIan Lake
11/05/2020, 9:24 PMGuy Bieber
11/05/2020, 9:48 PMGuy Bieber
11/05/2020, 9:48 PMIan Lake
11/05/2020, 11:03 PMval blurred = mutableStateOf(false)
in your login screenGuy Bieber
11/05/2020, 11:05 PMIan Lake
11/06/2020, 1:11 AM