For those probably working with material 3 api , rememberBottomSheetState() was replaced wuth rememberStandardBottomSheetState() . To set the initialValue field , use SheetState.Hidden. I hope this helps!
What about ModalBottomSheetLayout Philipp? I find that a bit better as it darkens the rest of the screen on it's own and also we only need to keep track on for sheetState (no scaffoldState needed). Great video by the way :)
hello philip I'm from Brazil... and I really like your videos on jetpack composition. Congratulations. One question: with jetpack compose I don't need OOP (object oriented) anymore?
Great video, thanks Philipp! How would you show this from a child composable? So if I have my app positioned in a scaffold with a bottom bar. How can I use the bottom sheet from within that scaffold content, and to be on top of the bottom bar?
Hi All, I am facing problem while implementing BottomSheetScafold. The width of BottomSheet content is not working in bigger displays like tablets etc. The width of bottom sheet is not occupying fillMaxWidth of the screen, instead it's filling max width to 640dp. Please help me in resolving above issue.
One big drawback with jetpack compose bottom sheets seem to be that the scrim color does not apply to the status bar, the alert dialogues apparently do this out of the box but not with bottom sheets
I usually use ModalBottomSheetLayout and the way implementation almost same like BottomSheetScaffold, just have different layout. ModalBottomSheetLayout is top rounded, default not peek and have an indication line at top. Maybe could you tell me what's the real different (when to use) ? Is BottomSheetScaffold can make its background content become black opacity when it is expand too? (overlay or shadow to the rest of the screen when the sheet is open) Anyway thanks for the tips
Hey Philipp, could you make a guide on how to use Koin with jetpack compose navigation + savedstatehandle (small master-detail app) and get arguments on 2nd screen (details) from viewmodel? That thing is driving me crazy I can't find a workaround, the argument is always null but it injects properly, and it seems to happen to other people as well
if you use hiltviewmodel, you can catch the bundle savedstatehandle in VM by adding SavedStateHandle in @Inject constructor() then to catch the value just savedStateHandle["key"]. anyway this is my simple implementation, may have wrong datatype. And Phillip already made the video about that. ua-cam.com/video/4gUeyNkGE3g/v-deo.html
I want to migrate to compose granularly and create bottomsheet with ComposeView inside xml. But its expanding animation triggered inside composable is laggy because of ComposeView wrap_content in ConstraintLayout. Any ideas how to make it smooth?
@@TomBerghuis sure, but passing composable height back to views will be pretty cumbersome, I hoped I can omit this and invent something simpler and more elegant 🙂
This is exactly what I was missing in the compose! Now I can create all my applications with it.
i am always hyped when you publish a new video, thank you very much for the free content 💙💙💙💙
For those probably working with material 3 api , rememberBottomSheetState() was replaced wuth rememberStandardBottomSheetState() . To set the initialValue field , use SheetState.Hidden.
I hope this helps!
Can you go from bottom sheet to full screen?
Can you elaborate liittle more
@@713nandinigupta7 That would be:
val sheetState = rememberStandardBottomSheetState(
initialValue = SheetValue.Hidden
)
What about ModalBottomSheetLayout Philipp? I find that a bit better as it darkens the rest of the screen on it's own and also we only need to keep track on for sheetState (no scaffoldState needed). Great video by the way :)
That's exactly what i need for the project i'm currently working on
Yes yes yes!!!! Thank you so much for this Philipp!
Philipp, thank you so much! It was really helpful!
How to add an overlay or shadow to the rest of the screen when the sheet is open
hello philip I'm from Brazil... and I really like your videos on jetpack composition. Congratulations. One question: with jetpack compose I don't need OOP (object oriented) anymore?
You still need OOP because Android Framework relies on Inheritance principles for example interfaces, super classes etc.
Thanks for doing these videos man.
Great video, thanks Philipp!
How would you show this from a child composable?
So if I have my app positioned in a scaffold with a bottom bar. How can I use the bottom sheet from within that scaffold content, and to be on top of the bottom bar?
Is it possible to have a dynamic views that recomposes itself in the bottomsheet contents?
I like the motion graphics in your videos. Do you do them yourself?
How to open the Jetpack compose bottomsheet from my existing android activity ?
Too bad we don't yet have android BottomSheetScaffold on Material 3.
I cant able to make fullscreen or based on pecertage of screen to occupy using scaffold ,kindly clarify on it
Hi All,
I am facing problem while implementing BottomSheetScafold. The width of BottomSheet content is not working in bigger displays like tablets etc. The width of bottom sheet is not occupying fillMaxWidth of the screen, instead it's filling max width to 640dp.
Please help me in resolving above issue.
Hello, pls can you do a video for implementing collapsing app bar with tablayout and bottomsheet in the same screen?
great explaining!
Did you ever manage to trigger showing the bottomSheet programmatically? I don't want to trigger it by a UI event
One big drawback with jetpack compose bottom sheets seem to be that the scrim color does not apply to the status bar, the alert dialogues apparently do this out of the box but not with bottom sheets
Good video
I have a query
How I can populate data to bottomsheet on an item click of LazyColumn
Please help I tried in many ways but dint got success
I usually use ModalBottomSheetLayout and the way implementation almost same like BottomSheetScaffold, just have different layout. ModalBottomSheetLayout is top rounded, default not peek and have an indication line at top.
Maybe could you tell me what's the real different (when to use) ?
Is BottomSheetScaffold can make its background content become black opacity when it is expand too?
(overlay or shadow to the rest of the screen when the sheet is open)
Anyway thanks for the tips
it's in the name. the modal bottom sheet is modal
how i add dependancy , plugins , classpaths in android project , after new gradle update plz make video
hey can we half the bottom sheet width in jetpack compose please reply
Please do a video about jetpack compose and graphql.
Gr8 like always
What a coincidence,
I just searched in afternoon
Thanks
There is no bottom sheet in latest versions. My bom version is 2023.04.01
Same here.
Awesome thanks
Hey Philipp, could you make a guide on how to use Koin with jetpack compose navigation + savedstatehandle (small master-detail app) and get arguments on 2nd screen (details) from viewmodel? That thing is driving me crazy I can't find a workaround, the argument is always null but it injects properly, and it seems to happen to other people as well
if you use hiltviewmodel, you can catch the bundle savedstatehandle in VM by adding SavedStateHandle in @Inject constructor() then to catch the value just savedStateHandle["key"].
anyway this is my simple implementation, may have wrong datatype.
And Phillip already made the video about that.
ua-cam.com/video/4gUeyNkGE3g/v-deo.html
Dr. Phil! A couple friends of mine want you to make apps for them. Can they email you?
I do not like scafold, it couses leaks when you use accessibility, I don't know if google already fixed it. So for me it's still a shit not a sheet,
oh sheet
No kotlin
First
You made it.
@@openparachute17 i need an award 😎
I want to migrate to compose granularly and create bottomsheet with ComposeView inside xml. But its expanding animation triggered inside composable is laggy because of ComposeView wrap_content in ConstraintLayout. Any ideas how to make it smooth?
why don't you set the width and height to match_parent for composeview
@@TomBerghuis because I need to know the top coordinate of bottomsheet to position other views in xml above it. Width matches parent already
if you can calculate the height of the bottom sheet you can position the other views programatically
@@TomBerghuis sure, but passing composable height back to views will be pretty cumbersome, I hoped I can omit this and invent something simpler and more elegant 🙂
@@bringoff ParentDataModifier might solve your use-case ua-cam.com/video/xcfEQO0k_gU/v-deo.html
Do you go to gym?