• Greg Spencer's avatar
    Implement Material MenuBar and MenuAnchor (#112239) · 8c271e5c
    Greg Spencer authored
    This implements a MenuBar widget that can render a Material menu bar, and a MenuAnchor widget used to create a cascading menu in a region. The menus are drawn in the overlay, while the menu bar itself is in the regular widget tree. Keyboard traversal works between the two.
    
    This implementation of the MenuBar uses MenuAnchor to create a cascading menu that contains widgets representing the menu items. These menu items can be any kind of widget, but are typically SubmenuButtons that host submenus, or MenuItemButtons that have shortcut hints (but don't actually activate the shortcuts) and don't host submenus.
    
    Cascading menus can be created outside of a MenuBar by using a MenuAnchor. They can be either given a specific location to appear (a coordinate), or they can be located by the MenuAnchor region that wraps the control that opens them.
    
    The developer may also create a MenuController to pass to the various menu primitives (MenuBar or MenuAnchor) to associate menus so that they can be traversed together and closed together. Creating a controller is not required.
    8c271e5c
Name
Last commit
Last update
..
action_chip Loading commit data...
appbar Loading commit data...
bottom_navigation_bar Loading commit data...
card Loading commit data...
choice_chip Loading commit data...
dialog Loading commit data...
dropdown Loading commit data...
filter_chip Loading commit data...
floating_action_button Loading commit data...
ink Loading commit data...
input_chip Loading commit data...
input_decorator Loading commit data...
list_tile Loading commit data...
menu_anchor Loading commit data...
navigation_bar Loading commit data...
navigation_rail Loading commit data...
popupmenu Loading commit data...
progress_indicator Loading commit data...
refresh_indicator Loading commit data...
scaffold Loading commit data...
slider Loading commit data...
switch Loading commit data...
text_button Loading commit data...
toggle_buttons Loading commit data...
tooltip Loading commit data...