Status Update
Comments
ma...@google.com <ma...@google.com>
sh...@gmail.com <sh...@gmail.com> #2
Hey Jose, do we have any plans to support this? Feel free to assign back if this should be a new feature request.
ma...@google.com <ma...@google.com> #3
Is this meant to be material or material3 bottom sheets, and for bottomsheetscaffold, modalbottomsheet, or both?
[Deleted User] <[Deleted User]> #4
Assigning to Clara who has pending CL's open on this topic
li...@gmail.com <li...@gmail.com> #5
This is meant for the BottomSheet that is integrated with androidx.navigation. So it is just for material for now.
li...@gmail.com <li...@gmail.com> #6
jo...@google.com <jo...@google.com> #7
Branch: androidx-main
commit 00c37d0b6949835a7e8a2f68eb037c57bfc727fe
Author: Clara Fok <clarafok@google.com>
Date: Mon Jul 22 18:20:05 2024
Add bottomSheet constructor with safe args
Add NavGraphBuilder.bottomSheet builder to create a bottomSheet with safe args.
Test: ./gradlew compose:material:material-navigation:cC
Bug: 351858980
Relnote: "Added new NavGraphBuilder.bottomSheet builder to create a bottomSheet with safe args"
Change-Id: I28589fd1d67de6a23167e6a7648f15d95ed4beb3
M compose/material/material-navigation/api/current.txt
M compose/material/material-navigation/api/restricted_current.txt
M compose/material/material-navigation/build.gradle
M compose/material/material-navigation/src/androidTest/java/androidx/compose/material/navigation/NavGraphBuilderTest.kt
M compose/material/material-navigation/src/main/java/androidx/compose/material/navigation/BottomSheetNavigatorDestinationBuilder.kt
M compose/material/material-navigation/src/main/java/androidx/compose/material/navigation/NavGraphBuilder.kt
be...@gmail.com <be...@gmail.com> #8
Branch: androidx-main
commit fcc5e50056fef5c3a8e6e5ca6672117d58685520
Author: Clara Fok <clarafok@google.com>
Date: Mon Jul 22 17:38:13 2024
Add BottomSheetNavigatorDestinationBuilder
Refactor BottomSheet to use NavDestinationBuilder so that we can leverage existing infrastrcuture to create type-safe BottomSheet in a follow-up CL.
Test: existing tests
Bug: 351858980
Relnote: "Added new BottomSheetNavigatorDestinationBuilder to create a BottomSheetNavigator.Destination with Kotlin DSL"
Change-Id: I777dbf640b83cd3428fd37c4ff5a8065f9ff856e
M compose/material/material-navigation/api/current.txt
M compose/material/material-navigation/api/restricted_current.txt
M compose/material/material-navigation/build.gradle
A compose/material/material-navigation/src/main/java/androidx/compose/material/navigation/BottomSheetNavigatorDestinationBuilder.kt
M compose/material/material-navigation/src/main/java/androidx/compose/material/navigation/NavGraphBuilder.kt
jo...@ifood.com.br <jo...@ifood.com.br> #9
Public release date TBD but in the meantime, this new feature can be accessed through
[Deleted User] <[Deleted User]> #10
Passing to Jose regarding release
wk...@gmail.com <wk...@gmail.com> #11
Any update on the release date please?
ap...@google.com <ap...@google.com> #12
I ma still waiting for the release. I have tried the SNAPSHOT version but that also requires androidCompileSdkVersion = 35, which is inconvenient with all the edge-to-edge changes. Is it possible to have the release and not require androidCompileSdkVersion 35?
jo...@google.com <jo...@google.com> #13
But Material3 still missing this feature:
qd...@gmail.com <qd...@gmail.com> #14
pr...@google.com <pr...@google.com> #15
Any updates? Will M3 be able to access NavGraphBuilder.bottomSheet on the next stable release? Regular material has this planned according to:
de...@gmail.com <de...@gmail.com> #16
ya...@gmail.com <ya...@gmail.com> #17
jo...@gmail.com <jo...@gmail.com> #18
Only commenting because this issue still exists.
jo...@toyrocketscience.com <jo...@toyrocketscience.com> #19
The similar issue exists in material3 modal BottomSheet, there should be a functionality where swiping down of bottomsheet should be disabled but it should be allowed to dismiss it by clicking outside or by back button.
+1 I also stumbled over this. Is there a place where we can add this as a feature request?
be...@gmail.com <be...@gmail.com> #20
og...@gmail.com <og...@gmail.com> #21
EDIT:: OOOOOOOO IM SO SORRY. I DIDN'T SEE @OptIn(ExperimentalMaterial3Api::class).
LOOKS LIKE A SIMPLE COMPONENT WILL BE RELEASE IN 2030 or 2050 ???? . Sorry MY BAD !!
Description
Steps to Reproduce
BottomSheetScaffold
withsheetGesturesEnabled
set to false like the following:MyContent()
likeLazyColumn
with aModifier
set to.fillMaxSize()
Expectation
The BottomSheet swipe to close gesture of the BottomSheet should be disabled but I should still be able to scroll inside the scrollable content.
Actual
I can still close the bottom sheet via swipe to close or to be more specific via swiping down the bottom sheet. However, the content inside is also scrollable as expected.
Further thoughts
It seems like that a scrollable component as content for the bottom sheet overrides the
sheetGesturesEnabled
setting.