1. 13 Feb, 2023 1 commit
  2. 03 Feb, 2023 1 commit
  3. 31 Jan, 2023 1 commit
  4. 26 Jan, 2023 1 commit
    • Todd Volkert's avatar
      Add more flexible image API (#118966) · b319938e
      Todd Volkert authored
      This updates the framework to provide higher level wrappers around ui.instantiateImageCodecWithSize(). Functionally, this doesn't change anything (other than deprecating the older loadBuffer() method in favor of loadImage()), but it sets the stage for a simpler change that will allow us to provide a more flexible way to load sized images.
      
      #118543
      b319938e
  5. 25 Jan, 2023 2 commits
  6. 24 Jan, 2023 1 commit
  7. 21 Jan, 2023 1 commit
  8. 18 Jan, 2023 2 commits
    • Michael Goderbauer's avatar
      remove single-view assumption from `paintImage` (#118721) · ae1cc18c
      Michael Goderbauer authored
      * remove single-view assumption from paintImage
      
      * dpr
      
      * fix test for web
      ae1cc18c
    • Paul Berry's avatar
      Fix applyBoxFit's handling of fitWidth and fitHeight. (#117185) · 997d4361
      Paul Berry authored
      * Fix applyBoxFit's handling of fitWidth and fitHeight.
      
      Previously, in `fitWidth` mode, if the input size had a wider aspect
      ratio than the output size, `applyBoxFit` would make the source rect
      taller than the input size in order to match the aspect ratio of the
      destination rect.  Similarly, in `fitHeight` mode, if the input size
      had a taller aspect ratio than the output size, `applyBoxFit` would
      make the source rect wider than the input size in to match the aspect
      ratio of the destination rect.  This is in contrast to all the other
      modes, which never output a source rect that's larger than the input
      size.
      
      Most of the time this worked as intended (since attempting to blit
      pixels that are outside the source image has no effect), however it
      meant that if a user attempted to create a `BoxDecoration` that used
      both `fitWidth` and `repeatY` (e.g. in an attempt to tile a background
      image), the image would not actually appear to repeat, since the logic
      in `paintImage` for determining the proper tiling stride is based on
      the destination image size, meaning that the entire destination rect
      would be covered in a single tile.
      
      This change modifies `applyBoxFit` so that in `fitWidth` mode, if the
      input size has a wider aspect ratio than the output size, it uses
      formulas that are equivalent to `contain`, whereas if the input size
      has a taller aspect ratio than the output size, it uses formulas that
      are equivalent to `cover`.  And vice versa for `fitHeight` mode.  This
      produces source and destination rects that match the behaviour
      specified in https://api.flutter.dev/flutter/painting/BoxFit.html.
      
      * Apply suggestions from code review
      Co-authored-by: 's avatarMichael Goderbauer <goderbauer@google.com>
      997d4361
  9. 13 Jan, 2023 2 commits
  10. 05 Jan, 2023 1 commit
  11. 03 Jan, 2023 1 commit
  12. 21 Dec, 2022 1 commit
  13. 11 Dec, 2022 1 commit
  14. 07 Dec, 2022 1 commit
  15. 05 Dec, 2022 1 commit
  16. 03 Dec, 2022 1 commit
  17. 16 Nov, 2022 1 commit
  18. 07 Nov, 2022 1 commit
  19. 28 Oct, 2022 1 commit
    • Justin McCandless's avatar
      Context Menus (#107193) · 0b451b6d
      Justin McCandless authored
      * Can show context menus anywhere in the app, not just on text.
      * Unifies all desktop/mobile context menus to go through one class (ContextMenuController).
      * All context menus are now just plain widgets that can be fully customized.
      * Existing default context menus can be customized and reused.
      0b451b6d
  20. 25 Oct, 2022 1 commit
  21. 18 Oct, 2022 1 commit
  22. 14 Oct, 2022 1 commit
  23. 07 Oct, 2022 2 commits
  24. 06 Oct, 2022 2 commits
  25. 29 Sep, 2022 1 commit
  26. 28 Sep, 2022 1 commit
  27. 26 Sep, 2022 1 commit
  28. 23 Sep, 2022 1 commit
  29. 19 Sep, 2022 1 commit
  30. 16 Sep, 2022 1 commit
  31. 15 Sep, 2022 1 commit
  32. 14 Sep, 2022 2 commits
  33. 13 Sep, 2022 1 commit
  34. 12 Sep, 2022 1 commit