1. 20 Nov, 2023 1 commit
  2. 17 Nov, 2023 2 commits
  3. 16 Nov, 2023 2 commits
  4. 15 Nov, 2023 1 commit
    • Srujan Gaddam's avatar
      Pin package:web 0.4.0 (#138428) · d8ffc739
      Srujan Gaddam authored
      This version is needed so that dart:js_interop can move to extension
      types. Also adds some code to handle some breaking changes:
      
      - Body -> Response. Body was an IDL interface mixin type we exposed in
      dart:html. Going forward, users should either use Request or Response.
      - Casts to JSAny. These are temporary until we move package:web types to
      extension types. Currently, package:web types can't implement JSObject
      as JSObject will move to be an extension type itself.
      Co-authored-by: 's avatarKevin Moore <kevmoo@users.noreply.github.com>
      d8ffc739
  5. 13 Nov, 2023 2 commits
  6. 10 Nov, 2023 1 commit
  7. 09 Nov, 2023 1 commit
  8. 07 Nov, 2023 2 commits
    • Hans Muller's avatar
      Added an AnimationController API doc example (#137975) · 84bfe640
      Hans Muller authored
      This example shows how to use `AnimationController` and
      `SlideTransition` to create an animated digit like you might find on a
      digital clock. New digit values slide into place from below, as the old
      value slides upwards and out of view. Taps that occur while the
      controller is already animating cause the controller's
      `AnimationController.duration` to be reduced so that the visuals don't
      fall behind.
      
      You can try the example here:
      https://dartpad.dev/?id=9553c20fe0fdb0c5447c1293e02400eb
      84bfe640
    • Qun Cheng's avatar
      Adaptive `Switch` (#130425) · ed70f4e2
      Qun Cheng authored
      Currently, `Switch.factory` delegates to `CupertinoSwitch` when platform
      is iOS or macOS. This PR is to:
      * have the factory configure the Material `Switch` for the expected look
      and feel.
      * introduce `Adaptation` class to customize themes for the adaptive
      components.
      ed70f4e2
  9. 03 Nov, 2023 5 commits
  10. 02 Nov, 2023 1 commit
  11. 01 Nov, 2023 2 commits
  12. 31 Oct, 2023 1 commit
  13. 26 Oct, 2023 1 commit
  14. 25 Oct, 2023 1 commit
  15. 24 Oct, 2023 1 commit
    • cui fliter's avatar
      fix some typos (#137144) · c5e71b3e
      cui fliter authored
      *Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.*
      
      fix some typos
      
      *List which issues are fixed by this PR. You must list at least one issue.*
      
      *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
      c5e71b3e
  16. 20 Oct, 2023 1 commit
  17. 19 Oct, 2023 1 commit
  18. 18 Oct, 2023 2 commits
  19. 14 Oct, 2023 1 commit
  20. 12 Oct, 2023 3 commits
    • Greg Spencer's avatar
      Allow `TapRegion` to consume tap events (#136305) · 22b0a62a
      Greg Spencer authored
      ## Description
      
      In order for `MenuAnchor` menus to be able to not pass on the taps that close their menus, `TapRegion` needed a way to consume them.  This change adds a flag to the `TapRegion`, `consumeOutsideTap` that will consume taps that occur outside of the region if the flag is set (it is false by default). The same flag is added to `MenuAnchor` to allow selecting the behavior for menus.
      
      `TapRegion` consumes the tap event by registering with the gesture arena and immediately resolving the tap as accepted if any regions in a group have `consumeOutsideTap` set to true.
      
      This PR also deprecates `MenuAnchor.anchorTapClosesMenu`, since it is a much more limited version of the same feature that only applied to the anchor itself, and even then only applied to closing the menu, not passing along the tap.  The same functionality can now be implemented by handling a tap on the anchor widget and checking to see if the menu is open before closing it.
      
      ## Related Issues
       - https://github.com/flutter/flutter/issues/135327
      
      ## Tests
       - Added tests for `TapRegion` to make sure taps are consumed properly.
      22b0a62a
    • Michael Goderbauer's avatar
      43736132
    • huycozy's avatar
      Fix PageView API doc sample fails on Desktop and Web (#135910) · e8a0cf3a
      huycozy authored
      ### Description
      
      This PR aims to improve/fix the PageView API doc sample for Web and Desktop platforms. On these platforms, mouse dragging gestures do not provide natural behavior similar to other desktop applications. This PR will add navigation buttons (indicators) so users can interact with the demo.
      
      ### Related issue
      
      Fixes https://github.com/flutter/flutter/issues/135188
      
      ### Demo video
      
      https://github.com/flutter/flutter/assets/104349824/0f9c60bd-8b18-404e-b5b6-1d594604de31
      e8a0cf3a
  21. 11 Oct, 2023 1 commit
  22. 29 Sep, 2023 1 commit
  23. 28 Sep, 2023 1 commit
    • Renzo Olivares's avatar
      Implement SelectionArea single click/tap gestures (#132682) · 21ad7122
      Renzo Olivares authored
      This change collapses the selection at the clicked/tapped location on single click down for desktop platforms, and on single click/tap up for mobile platforms to match native.
      
      This is a change from how `SelectionArea` previously worked. Before this change a single click down would clear the selection. From observing a native browser it looks like when tapping on static text the selection is not cleared but collapsed. A user can still attain the selection from static text using the `window.getSelection` API.
      
      https://jsfiddle.net/juepasn3/11/ You can try this demo out here to observe this behavior yourself. When clicking on static text the selection will change.
      
      This change also allows `Paragraph.selections` to return selections that are collapsed. This for testing purposes to confirm where the selection has been collapsed.
      
      Partially fixes: #129583
      21ad7122
  24. 20 Sep, 2023 3 commits
  25. 18 Sep, 2023 2 commits