BottomSheet navigation
To use the BottomSheetNavigator
you should first import cafe.adriel.voyager:voyager-bottom-sheet-navigator
(see Setup).
Voyager provides a specialized navigator for ModalBottomSheetLayout
: the BottomSheetNavigator
.
Call it and set the back layer content. The BottomSheet content (or the front layer) will be set on demand.
You can also use the default Navigator
to navigate on your back layer content.
The BottomSheetNavigator
accepts the same params as ModalBottomSheetLayout
.
Use the LocalBottomSheetNavigator
to show and hide the BottomSheet.
Sample
Source code here.
Last updated