Open JackpotM1103 opened 8 months ago
Is there any way to disable an item in the right-click menu? Just like the click event in flutter is assigned null After I assigned null to MenuItem, the style did not change.
MenuItem( label: 'xxx', icon: Icons.open_in_new, onSelected: item.data['source'] == 0 ? null : () { Provider.of<TreeModel>(context, listen: false) .loadAndSelectObject(item.data['source']); }, ),
I don't think I implemented this feature yet, but It will be in consideration. Thanks for letting me know.
Is there any way to disable an item in the right-click menu? Just like the click event in flutter is assigned null After I assigned null to MenuItem, the style did not change.