Open vinceglb opened 1 year ago
+1 same error
I don't think it is possible atm, because BottomSheetNavigator under the hood uses BottomSheetLayout from compose.material.
I do think the correct solution is to update BottomSheetNavigator so that it uses BottomSheetScaffold instead.
That said, someone has to put in the time and do it. 😁
We should have a copy of the current Bottom Sheet module but for Material 3. We don't have the time now to work on it, but we appreciate a PR.
After 1.0.0 I will create it
Small tip for the workaround in the meantime: you can use runtimeOnly(compose.material)
instead of implementation
in order to not pollute the imports with non-material3 composables.
In my Compose Multiplatform project, I'm only using Material 3.
Today, I added Voyager bottom sheet navigator dependency and a set it up like in the documentation:
When I launch the app, here is the crash:
This is because the project do not include Material (but only material 3).
The workaround is to add
implementation(compose.material)
.Is it possible to use Voyager Bottom Sheets with only Material 3? If not, I suggest updating the documentation specifying that the Material dependency is required to make it work.