• Hixie's avatar
    Introduce a showPopupMenu() function · a3ae46b9
    Hixie authored
    Instead of having to manage the popup menu from your app's build
    function, you now just call showPopupMenu() with the menu's position and
    it takes care of everything for you.
    
    This solves the problem that the popup menu was trying to mutate the
    state of the navigator from within its own initState() function.
    
    Also, remove the "route" argument to RouteBase.build() since it equals
    "this" by definition...
    
    Also, remove ModalOverlay, and instead put that logic in the navigator.
    a3ae46b9
widgets.dart 2.54 KB