Not correct docs and error log about BottomSheet Style
When adding a BottomSheet Style, the documentation gives incorrect instructions for implementing this style:
- Destination style
I didn't find
DestinationStyle.BottomSheet, but after research I foundDestinationStyleBottomSheetwhich provide this possibilities, therefore we should use:
@Destination(style = DestinationStyleBottomSheet::class)
@Composable
fun ColumnScope.SomeBottomSheetScreen() { /*...*/ }
- Initialization of navController:
val navController = rememberAnimatedNavController()
With using new compose navigation with supporting animation, we should use this:
import androidx.navigation.compose.rememberNavController
val navController = rememberNavController()
- Internal error logs:
In code we have fallback, if we didn't find suitable
DestinationStylewith old info aboutDestinationStyle.BottomSheetandDestinationStyleBottomSheet
So, thank you in advance for your attention, can support with fixing)
It looks like this documentation is very outdated. Here it tells me to use navController.navigateTo() method, but apparently it's deprecated
Besides, on the setup page, it doesn't include 1.9.x releases, and lists 1.8.x-beta as the newest version
There's already an issue open for the outdated docs https://github.com/raamcosta/compose-destinations/issues/449
Closing this one as docs are being updated now for v2. Also some of these issues were fixed on v1 in the mean time.