[Navigation Material] Add `skipHalfExpanded` parameter with default value equal to `false`.
Hey,
I added skipHalfExpanded boolean to the parameters of rememberBottomSheetNavigator function, because I think it is a popular use case to make it skip half expanded state as a default behaviour, especially when it is treated as separate navigation destination.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Hi, thanks for the PR. This is a change we're consciously not making as we rather want to support a destination-level flag. Due to ongoing work in Material's ModalBottomSheetLayout I don't believe we can make this work yet though. Feel free to prototype a destination-level flag, I might be wrong :)
The concerns are about recreating the state in time when the value changes as the destination changes, but maybe it'd work. We'd want some good test coverage that tests
- Navigating from a
skipHalfExpanded = falseto askipHalfExpanded = falsedestination - Navigating from a
skipHalfExpanded = falseto askipHalfExpanded = truedestination - Navigating from a
skipHalfExpanded = trueto askipHalfExpanded = falsedestination and ensures that the sheet opens up to the correct state.
Let me know if you'd be interested in contributing this change!
@jossiwolf Alright, on me. I'll try to implement that :)
Awesome, thank you!
Hey, there hasn't been any progress on this since ~1 year, can I go ahead and create a new pr?
@amanv8060 Yes go on please, I unfortunetley was not able to find time to adress it properly :(
With the release of Compose Material 1.7.0-alpha04, the Material team has added a new artifact: androidx.compose.material:material-navigation, which fully replaces Accompanist Navigation Material.
As such, we are closing all PRs here on Accompanist.