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

Starmenu Elements are not Stateful #5

Closed
MiHechtel opened this issue Oct 8, 2021 · 1 comment
Closed

Starmenu Elements are not Stateful #5

MiHechtel opened this issue Oct 8, 2021 · 1 comment

Comments

@MiHechtel
Copy link

The single Menu Elements are not stateful. As I try to use it as a checking menu with a background color change when clicked, it would be helpful to make the StarItems stateful.

Would be glad if thats on the pipeline for this great package!

@alnitak
Copy link
Owner

alnitak commented Oct 29, 2021

Hi @MiHechtel
sorry for the late!
If I understand you correctly, you would like to have some controls to some widget while the menu is opened.
StarItems is not meant to be used. My bad because I had to hide it.
If you want your menu item to be StatefullWidget, you should make your own Statefull Widget and pass it to items parameters list as like other.
Please see the example and find how Slider() in the entries is working and how to avoid the menu to close when changing the slider value.

Meanwhile, I have updated the package with lazyItems parameter to let you build items in runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants