I what to set a transition animation for my view
search about it and understand must send navigator extras in navigate metod
its work for normal navigation but when what send argument with navigation show me this error
None of the following functions can be called with the arguments supplied: private open fun navigate(p0: NavDestination, p1: Bundle?, p2: NavOptions?, p3: Navigator.Extras?): Unit defined in androidx.navigation.NavController public open fun navigate(p0: Int, p1: Bundle?, p2: NavOptions?, p3: Navigator.Extras?): Unit defined in androidx.navigation.NavController
it's about first argument error
and this is my code
val extras = FragmentNavigatorExtras(image_cover to "image_cover")
findNavController().navigate(
MoviesFragmentDirections.actionMoviesFragmentToMovieItemFragment(
moviesEntity.title,
moviesEntity.image,
moviesEntity.text,
moviesEntity.video
),
null,
null,
extras
)