Status Update
Comments
tr...@gmail.com <tr...@gmail.com> #2
cl...@google.com <cl...@google.com>
ma...@google.com <ma...@google.com> #3
Thanks, this is in our roadmap, no ETA though. It will be most probably a new @Composable since it's a separate component in material library:
tr...@gmail.com <tr...@gmail.com> #4
ma...@google.com <ma...@google.com> #5
Hello. We don't have any ETA yet still, but it is certainly NOT coming as a 1.0 stable API.
Given that Drawer implementation is fairly simple, I recommend to implement it on your own for now to unblock yourself
tr...@gmail.com <tr...@gmail.com> #6
tr...@gmail.com <tr...@gmail.com> #7
tr...@gmail.com <tr...@gmail.com> #8
ma...@google.com <ma...@google.com> #9
What's the reason you don't like having your own state for your own component? swipeableState is an implementation detail and we intentionally removed it from the Drawer. Apologies if that caused inconveniences.
We do not really intent to reuse states between different components since they are semantically specific most of the time, so the separate state for a separate component sounds like an idiomatic way of doing things.
Let me know if you have any other thoughts in this regard, thanks!
tr...@gmail.com <tr...@gmail.com> #10
ma...@google.com <ma...@google.com> #11
I understand the frustration, indeed it's a fair amount of code to copy, sorry about that.
That being said, it might be a good feature to contribute to if you are up for it. This way you get it working, while getting all the updates from our side when it lands :)
ma...@google.com <ma...@google.com>
tr...@gmail.com <tr...@gmail.com> #12
ma...@google.com <ma...@google.com> #13
Yeah, we're working on it, but so far we don't support code pulling from github for material and foundation. Please, refer to the
That being said, don't feel pressured to contribute, if the code works for your local codebase it's fine too :)
ni...@google.com <ni...@google.com> #14
ma...@google.com <ma...@google.com>
tr...@gmail.com <tr...@gmail.com> #15
ma...@google.com <ma...@google.com> #16
Connie, could you please handle this request and see if it fits and when? thanks
co...@google.com <co...@google.com> #17
To confirm:
- Since Material spec explicitly state:
Don’t open a navigation drawer from the right side of the screen unless the app is set to a right-to-left language
. Therefore, adding functionality to open the modal drawer from the opposite direction would be a non-starter. - Adding a new side sheet component. Make sense but there are currently no plans to do so in the first half of 2022
You offered to contribute in
ra...@gmail.com <ra...@gmail.com> #18
CompositionLocalProvider(LocalLayoutDirection provides LayoutDirection.Rtl) {
ModalDrawer(
drawerState = drawerState,
modifier = Modifier.fillMaxSize(),
drawerContent = {
MyDrawerContent()
}
) {
CompositionLocalProvider(LocalLayoutDirection provides LayoutDirection.Ltr) {
BodyContent()
}
}
}
For Double Drawer Layout (two drawers which opens from right side and left side) see :-
co...@google.com <co...@google.com> #19
Aneesha,
Please help prioritize the M3 side drawer component for 2023.
Description
Android Studio version: 4.2.0 Canary 16
We need a variation (override or boolean parameter) of ModalDrawerLayout for opening the drawer on the opposite side of the screen. I realize that material guidelines specify that a drawer should open on the same side as the TopAppBar navigation icon. However, in the design our our app we need a non-standard drawer which opens from the other side of the screen.
I tried copying the standard ModalDrawerLayout and modifying it to open from the opposite side, but was unsuccessful in the attempt. Also, this is a poor solution, even if I got it working, because we would then loose out on all ModalDrawerLayout bug fixes and improvements in the future.