1. 05 Apr, 2023 1 commit
  2. 28 Mar, 2023 1 commit
  3. 24 Jan, 2023 1 commit
  4. 18 Jan, 2023 1 commit
  5. 17 Jan, 2023 1 commit
  6. 10 Jan, 2023 1 commit
    • Yegor's avatar
      add closed/open focus traversal; use open on web (#115961) · 42053575
      Yegor authored
      * allow focus to leave FlutterView
      
      * fix tests and docs
      
      * small doc update
      
      * fix analysis lint
      
      * use closed loop for dialogs
      
      * add tests for new API
      
      * address comments
      
      * test FocusScopeNode.traversalEdgeBehavior setter; reverse wrap-around
      
      * rename actionResult to invokeResult
      
      * address comments
      42053575
  7. 03 Dec, 2022 1 commit
  8. 29 Nov, 2022 1 commit
    • Greg Spencer's avatar
      Menu bar accelerators (#114852) · 0cb9f704
      Greg Spencer authored
      * Add MenuMenuAcceleratorLabel to support accelerators.
      
      * Review Changes
      
      * Review Changed
      
      * Fix default label builder to use characters
      
      * Remove golden test that shouldn't have been there.
      0cb9f704
  9. 17 Oct, 2022 1 commit
  10. 12 Sep, 2022 1 commit
  11. 02 Sep, 2022 1 commit
  12. 19 Jul, 2022 1 commit
  13. 31 May, 2022 1 commit
    • Greg Spencer's avatar
      Switch debugAssertNotDisposed to be a static (#104772) · 16b73481
      Greg Spencer authored
      This reverts part of the change made in #103456 to expose a debug check for subclasses of ChangeNotifier to avoid code duplication. Instead of making debugAssertNotDisposed a public instance function, it is now a public static function. It makes it harder to call, slightly, but it means that everyone who implemented ChangeNotifier instead of extending it doesn't get broken.
      16b73481
  14. 26 May, 2022 2 commits
  15. 25 May, 2022 1 commit
    • Greg Spencer's avatar
      Removing Shorcuts.of and Shortctus.maybeOf (#104215) · da24f105
      Greg Spencer authored
      This removes Shorcuts.of and Shortctus.maybeOf because they're not especially useful, since the only thing you can really set on a ShortcutManager is the shortcuts, and the Shortcuts widget that you give it to manages those, so if it rebuilds, it overwrites what you set.
      
      Also, adds a Shortcuts.manager constructor and removes the manager argument to the Shortcuts widget.
      
      Removing these will also eliminate an InheritedWidget for each Shortcuts widget, improving memory usage.
      da24f105
  16. 19 May, 2022 1 commit
    • Greg Spencer's avatar
      Add ShortcutsRegistry (#103456) · f6c3ee31
      Greg Spencer authored
      This adds a ShortcutsRegistry for ShortcutActivator to Intent mappings that can be modified from its descendants.
      
      This is so that descendants can make shortcuts dynamically available to a larger portion of the app than just their descendants. This is a precursor needed by the new MenuBar, for instance, so that the menu bar itself can be placed where it likes, but the shortcuts it defines can be in effect for most, if not all, of the UI surface in the app. For example, the "Ctrl-Q" quit binding would need to work even if the focused widget wasn't a child of the MenuBar.
      
      This just provides the shortcut to intent mapping, the actions activated by the intent are described in the context where they make sense. For example, defining a "Ctrl-C" shortcut mapped to a "CopyIntent" should perform different functions if it happens while a TextField has focus vs when a drawing has focus, so those different areas would need to define different actions mapped to "CopyIntent". A hypothetical "QuitIntent" would probably be active for the entire app, so would be mapped in an Actions widget near the top of the hierarchy.
      f6c3ee31
  17. 14 Apr, 2022 1 commit
  18. 04 Apr, 2022 1 commit
    • Greg Spencer's avatar
      Implements a PlatformMenuBar widget and associated data structures (#100274) · 2d9ad260
      Greg Spencer authored
      Implements a PlatformMenuBar widget and associated data structures for defining menu bars that use native APIs for rendering.
      
      This PR includes:
      A PlatformMenuBar class, which is a widget that menu bar data can be attached to for sending to the platform.
      A PlatformMenuDelegate base, which is the type taken by a new WidgetsBinding.platformMenuDelegate.
      An implementation of the above in DefaultPlatformMenuDelegate that talks to the built-in "flutter/menu" channel to talk to the built-in platform implementation. The delegate is so that a plugin could override with its own delegate and provide other platforms with native menu support using the same widgets to define the menus.
      This is the framework part of the implementation. The engine part will be in flutter/engine#32080 (and flutter/engine#32358)
      2d9ad260
  19. 30 Mar, 2022 1 commit
  20. 04 Mar, 2022 1 commit
  21. 03 Mar, 2022 1 commit
  22. 01 Mar, 2022 1 commit
  23. 07 Jan, 2022 1 commit
  24. 12 Dec, 2021 1 commit
  25. 07 Dec, 2021 1 commit
  26. 17 Nov, 2021 2 commits
  27. 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
  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. 29 Jul, 2021 1 commit
  30. 28 Jul, 2021 1 commit
  31. 26 Jul, 2021 1 commit
  32. 09 Jul, 2021 1 commit
  33. 12 Jun, 2021 1 commit
  34. 19 May, 2021 1 commit
  35. 10 May, 2021 1 commit
  36. 28 Apr, 2021 1 commit
  37. 26 Apr, 2021 1 commit
  38. 15 Apr, 2021 1 commit
    • Tong Mu's avatar
      Shortcut activator (#78522) · eb735167
      Tong Mu authored
      This PR introduced a new class, ShortcutActivator, and refactored the the definition and lookup system of shortcuts, in order to solve a few issues of the previous algorithm.
      eb735167