Closed BrentHuang closed 2 months ago
Nope, there is no direct 'checked' menuitem.
But, you can play with the existing props. Ex: set the MenuItemButton.leading
prop to an Icon
(checkmark), and switch/remove it in the MenuItemButton.on_click
callback.
Thanks, I know I can do this, but it's a bit cumbersome
Sorry for that, but you will have to do it that way for now.
Closing this issue as resolved.
PopupMenuItem has 'checked' Property, why not MenuItemButton? @ndonkoHenri
Sorry, but all controls are not similar.
Sorry, but all controls are not similar.
In practice, this is a very common menu feature. It is recommended to add it during optimization. The priority can be lowered.
Are there any 'checked' menuitem like this?