-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MD3 native dropdown support #328
Conversation
2f39e40
to
d74641a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
onDismissRequest = onDismissRequest, | ||
popupPositionProvider = popupPositionProvider, | ||
onPreviewKeyEvent = onPreviewKeyEvent, | ||
onKeyEvent = onKeyEvent, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DesktopMenu.desktop.kt
has additional logic here. Let's copy it here too.
* [Interaction]s and customize the appearance / behavior of this menu item in different states. | ||
*/ | ||
@Composable | ||
fun DropdownMenuItem( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to not commonize public functions without commonizing them in the original androidx
repository first. It can cause issues. Let's just copy it to uikitMain
for now.
Commonization of DropdownMenu
is a separate issue
modifier: Modifier = Modifier, | ||
offset: DpOffset = DpOffset(0.dp, 0.dp), | ||
onPreviewKeyEvent: ((KeyEvent) -> Boolean) = { false }, | ||
onKeyEvent: ((KeyEvent) -> Boolean) = { false }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably need to add these parameters to another implementations first, and only then here. The order of parameters may change (because of preserving backward compatibility for the old implementations)
If you don't need them, let's not add them for now.
Adding dropdown support for native target in material 3 library.
CLA is signed