Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
A short description of the request:
When creating a BottomSheet, it is necessary to control its entry and exit in the composition with a boolean in addition to the SheetState. We don't need this boolean when creating a NavigationDrawer. Unlike DrawerState, SheetState doesn't have an initial value. We need a code snippet like this to see the closing animation of the bottom sheet:
scope.launch { sheetState.hide() }.invokeOnCompletion { if (!sheetState.isVisible) { showBottomSheet = false } } Possible solution: Adding initialValue to SheetState
What is the purpose of this new feature? Avoid writing extra code for the BottomSheet