flutter/examples/api/test/material/menu_anchor
Greg Spencer e4a39fa2ed
Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536)
## Description

This modifies the `MenuAnchor` `onPressed` activation to delay until after the current frame is built, and resolve any focus changes before it invokes the `onPressed`, so that actions that operate on the `primaryFocus` can have a chance of working on the focused item they were meant to work on.

## Related Issues
 - Fixes https://github.com/flutter/flutter/issues/118731

## Tests
 - No tests yet (hence draft still)
2023-07-20 22:11:20 +00:00
..
checkbox_menu_button.0_test.dart Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536) 2023-07-20 22:11:20 +00:00
menu_accelerator_label.0_test.dart Updated Menu examples (#128080) 2023-06-01 15:27:34 -07:00
menu_anchor.0_test.dart Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536) 2023-07-20 22:11:20 +00:00
menu_anchor.1_test.dart Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536) 2023-07-20 22:11:20 +00:00
menu_bar.0_test.dart Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536) 2023-07-20 22:11:20 +00:00
radio_menu_button.0_test.dart Add applyFocusChangeIfNeeded, have menus restore focus before activating (#130536) 2023-07-20 22:11:20 +00:00