Skip to content
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

Leading icon #210

Open
gabridego opened this issue Oct 29, 2023 · 1 comment
Open

Leading icon #210

gabridego opened this issue Oct 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@gabridego
Copy link

Hi, I am using your library, and I am really enjoying it so far.
Is it possible to add a leading icon to the button, as in the official DropdownMenu class? I only found documentation regarding the dynamic trailing icon, while in the examples the leading icon is only shown as part of the hint message.

Thank you and congrats for the great work!

@AhmedLSayed9
Copy link
Owner

Sure!
For now, you can use selectedItemBuilder to add a leading icon when an item is selected.

@AhmedLSayed9 AhmedLSayed9 added the enhancement New feature or request label Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants