ziv kesten
11/20/2020, 9:46 AMUnsupportedOperationException: Parcelables don't support default values.
My code for passing the data is:
composable("route".plus("/argument_key"),
arguments = listOf(navArgument("argument_key) {
type = NavType.ParcelableType(AnimationIdHolder::class.java)
})
)
And my code for extracting it is:
backStackEntry.arguments?.getParcelable<AnimationIdHolder>("argument_key")
Where AnimationIdHolder
is:
@Parcelize
data class AnimationIdHolder(
val animationId: Int
): Parcelable
@Ian Lake Any idea on what is the default value required here and why it is not supported?
Further more, maybe someone can point me in the direction of how i can pass parcelable types using the safeArgs in jetpack compose navigation?gsala
11/20/2020, 10:22 AMJordi Saumell
11/20/2020, 11:48 AMalpha02 is causing a crash with slotTable but that’s irrelevant to my questionto use alpha02 you need to use compose07 too. And all libraries that use compose should also point to 07 (in my case it was Koin the problem)
ziv kesten
11/20/2020, 11:51 AM