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

[super_context_menu] Menu item disable does not work for DeferredMenuElement #467

Open
Uche01 opened this issue Nov 11, 2024 · 0 comments
Open

Comments

@Uche01
Copy link

Uche01 commented Nov 11, 2024

Using MenuActionAttributes(disabled: true) inside DeferredMenuElement callback does not disable the item. The item appears enabled:

DeferredMenuElement((_) async {
  await Future.delayed(const Duration(milliseconds: 1));
  return [MenuAction(title: "Title", image: null, attributes: const MenuActionAttributes(disabled: true), callback: () {})];
})
@Uche01 Uche01 changed the title Menu item disable does not work for DeferredMenuElement [super_context_menu] Menu item disable does not work for DeferredMenuElement Dec 18, 2024
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

1 participant