1. 28 Sep, 2022 1 commit
    • 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
  2. 19 Sep, 2022 1 commit
  3. 14 Sep, 2022 1 commit
  4. 06 Sep, 2022 1 commit
    • Darren Austin's avatar
      Fixing elevation issues with Material 3 (#110624) · 33ed6a35
      Darren Austin authored
      * Added support for surfaceTintColor and shadowColor to the Dialog widgets.
      * Updated the defaults for Material.shadowColor and Material.surfaceTint to allow turning off the features with a transparent color.
      * Added support for shadowColor and surfaceTintColor for Drawer widget.
      33ed6a35
  5. 26 Aug, 2022 1 commit
  6. 25 Aug, 2022 1 commit
  7. 22 Aug, 2022 1 commit
  8. 10 Aug, 2022 1 commit
  9. 27 Jul, 2022 1 commit
  10. 11 Jul, 2022 1 commit
  11. 22 Jun, 2022 1 commit
  12. 15 Jun, 2022 1 commit
  13. 10 Jun, 2022 1 commit
  14. 08 Jun, 2022 1 commit
  15. 07 Jun, 2022 1 commit
  16. 02 Jun, 2022 1 commit
  17. 27 May, 2022 1 commit
  18. 25 May, 2022 1 commit
  19. 19 May, 2022 1 commit
  20. 10 May, 2022 1 commit
  21. 14 Apr, 2022 1 commit
  22. 09 Apr, 2022 1 commit
  23. 31 Mar, 2022 1 commit
  24. 14 Jan, 2022 1 commit
  25. 08 Oct, 2021 3 commits
  26. 04 Oct, 2021 1 commit
    • Greg Spencer's avatar
      Clean up examples, remove section markers and --template args (#91133) · fd9ce277
      Greg Spencer authored
      This does a cleanup of the examples, removing all of the "section" markers and extra comments that we don't need anymore now that the samples are no longer in the source code. It also removes the --template arguments from the {@tool dartpad} and {@tool sample} directives, since those are no longer used. It converts two examples that I discovered were still embedded into linked examples in the examples folder.
      
      I didn't delete the templates from the snippets config folder yet, because there are still embedded samples in the dart:ui package from the engine that use them. Once dart:ui no longer uses the templates, they can be removed.
      
      I bumped the version of the snippets package to pick up a change that allows removal of the --template argument.
      fd9ce277
  27. 28 Sep, 2021 1 commit
  28. 25 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Extract Sample code into examples/api (#87280) · 33403bd2
      Greg Spencer authored
      This extracts the sample code out from the API doc comments, and places them in separate files on disk, allowing running of the examples locally, testing them, and building of slightly larger examples.
      33403bd2
  29. 21 May, 2021 1 commit
  30. 13 May, 2021 1 commit
  31. 09 Apr, 2021 1 commit
  32. 07 Apr, 2021 1 commit
  33. 02 Apr, 2021 1 commit
  34. 31 Mar, 2021 1 commit
  35. 23 Mar, 2021 1 commit
  36. 17 Mar, 2021 1 commit
  37. 12 Mar, 2021 1 commit
  38. 17 Feb, 2021 1 commit