1. 25 Jan, 2024 1 commit
  2. 23 Jan, 2024 1 commit
  3. 19 Jan, 2024 1 commit
  4. 16 Jan, 2024 1 commit
  5. 03 Jan, 2024 1 commit
  6. 02 Jan, 2024 1 commit
  7. 07 Dec, 2023 1 commit
  8. 09 Nov, 2023 1 commit
    • Renzo Olivares's avatar
      Fix text selection in `SearchAnchor/SearchBar` (#137636) · 3225aa58
      Renzo Olivares authored
      This changes fixes text selection gestures on the search field when using `SearchAnchor`.
      
      Before this change text selection gestures did not work due to an `IgnorePointer` in the widget tree.
      
      This change:
      * Removes the `IgnorePointer` so the underlying `TextField` can receive pointer events.
      * Introduces `TextField.onTapAlwaysCalled` and `TextSelectionGestureDetector.onUserTapAlwaysCalled`, so a user provided on tap callback can be called on consecutive taps. This is so that the user provided on tap callback for `SearchAnchor/SearchBar` that was previously only handled by `InkWell` will still work if a tap occurs in the `TextField`s hit box. The `TextField`s default behavior is maintained outside of the context of `SearchAnchor/SearchBar`.
      
      Fixes https://github.com/flutter/flutter/issues/128332 and #134965
      3225aa58
  9. 22 Oct, 2023 1 commit
    • Todd Volkert's avatar
      Add timeline events for post frame callbacks (#136435) · cb9a3f69
      Todd Volkert authored
      Before this change, long-running post-frame callbacks wouldn't show up in the timeline at all.  This adds a timeline event for post-frame callbacks, with a debug flag that will add timeline events for each individual callback.
      
      #testexempt -- we have no way to test calls to the timeline.
      cb9a3f69
  10. 06 Oct, 2023 1 commit
  11. 20 Sep, 2023 1 commit
    • Greg Spencer's avatar
      Remove 'must be non-null' and 'must not be null' comments in widgets library (#134992) · 6e5134b0
      Greg Spencer authored
      ## Description
      
      This removes all of the comments that are of the form "so-and-so (must not be null|can ?not be null|must be non-null)" from the cases where those values are defines as non-nullable values.
      
      This PR removes them from the widgets library.
      
      This was done by hand, since it really didn't lend itself to scripting, so it needs to be more than just spot-checked, I think. I was careful to leave any comment that referred to parameters that were nullable, but I may have missed some.
      
      In addition to being no longer relevant after null safety has been made the default, these comments were largely fragile, in that it was easy for them to get out of date, and not be accurate anymore anyhow.
      
      This did create a number of constructor comments which basically say "Creates a [Foo].", but I don't really know how to avoid that in a large scale change, since there's not much you can really say in a lot of cases.  I think we might consider some leniency for constructors to the "Comment must be meaningful" style guidance (which we de facto have already, since there are a bunch of these).
      
      ## Related PRs
      - https://github.com/flutter/flutter/pull/134984
      - https://github.com/flutter/flutter/pull/134991
      - https://github.com/flutter/flutter/pull/134993
      - https://github.com/flutter/flutter/pull/134994
      
      ## Tests
       - Documentation only change.
      6e5134b0
  12. 12 Sep, 2023 1 commit
  13. 17 Aug, 2023 1 commit
  14. 16 Aug, 2023 2 commits
  15. 15 Aug, 2023 1 commit
  16. 19 Jul, 2023 1 commit
  17. 06 Jul, 2023 2 commits
  18. 21 Jun, 2023 1 commit
    • Renzo Olivares's avatar
      Selection area right click behavior should match native (#128224) · b36ef583
      Renzo Olivares authored
      This change updates `SelectableRegion`s right-click gesture to match native platform behavior.
      
      Before: Right-click gesture selects word at position and opens context menu (All Platforms)
      After: 
      - Linux, toggles context menu on/off, and collapses selection when click was not on an active selection (uncollapsed).
      - Windows, Android, Fuchsia, shows context menu at right-clicked position (unless the click is at an active selection).
      - macOS, toggles the context menu if right click was at the same position as the previous / or selects word at position and opens context menu.
      - iOS, selects word at position and opens context menu.
      
      This change also prevents the `copy` menu button from being shown when there is a collapsed selection (nothing to copy).
      
      Fixes #117561
      b36ef583
  19. 20 Jun, 2023 1 commit
  20. 08 Jun, 2023 1 commit
  21. 02 Jun, 2023 1 commit
  22. 15 May, 2023 1 commit
  23. 12 May, 2023 1 commit
  24. 24 Apr, 2023 2 commits
  25. 21 Apr, 2023 2 commits
  26. 20 Apr, 2023 2 commits
  27. 13 Apr, 2023 1 commit
  28. 08 Apr, 2023 1 commit
  29. 06 Apr, 2023 2 commits
  30. 05 Apr, 2023 1 commit
  31. 31 Mar, 2023 1 commit
  32. 29 Mar, 2023 1 commit
  33. 27 Mar, 2023 1 commit
  34. 22 Mar, 2023 1 commit