Introduce a showPopupMenu() function

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.
9 files changed
tree: 7f46a66c667d2a01e73b6a30a21f43e632093c76
  1. base/
  2. build/
  3. examples/
  4. mojo/
  5. services/
  6. skia/
  7. sky/
  8. skysprites/
  9. testing/
  10. third_party/
  11. tools/
  12. travis/
  13. ui/
  14. url/
  15. .clang-format
  16. .gitattributes
  17. .gitignore
  18. .gn
  19. .travis.yml
  20. AUTHORS
  21. BUILD.gn
  22. CONTRIBUTING.md
  23. DEPS
  24. LICENSE
  25. README.md
README.md

Flutter

Build Status

Flutter is a new way to build high-performance, cross-platform mobile apps. Sky is optimized for today‘s, and tomorrow’s, mobile devices. We are focused on low-latency input and high frame rates on Android and iOS.

Community

Join us on IRC at #flutter on Freenode or join our mailing list, sky-dev@googlegroups.com.