Is there a technical reason that there's no materi...
# compose
e
Is there a technical reason that there's no material3 bottom sheet destination for navigation, or has it just not been implemented yet?
👀 3
f
Wouldn't the bottom sheet display based on the state generated from the viewModel for that content?
e
It could, but the same question could be asked of the dialog destination.
h
I'm not sure but maybe modal bottom sheet layout needs to be migrated first, no?
j
We haven't gotten to this yet as other work is higher priority. I'll write a small sample soon, but we recommend implementing a custom navigator (~60 LoC) in the meantime 🙂
👀 2
👍 2
k
@jossiwolf is there some documentation on how to implement custom navigator? I havent found any and I am curious
e
@jossiwolf did you ever get a chance to write that sample?
👀 3
Well instead of waiting longer I just made my own based off of the dialog navigator - https://github.com/eygraber/vice/pull/198 There's one thing I need to fix which is to provide the navigator annotations for Android, and after that is done I will publish the library (likely tomorrow night).
🫡 1
h
@eygraber does the parent ModalBottomSheetLayout need M3 migration or no? 🤔
e
I'll write up usage in the readme of the new repo, but basically you need to do:
Copy code
NavHost(...) { ... }
ModalBottomSheetHost()
j