1. 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
  2. 20 Jan, 2023 1 commit
  3. 27 May, 2022 1 commit
  4. 25 May, 2022 1 commit
    • Pierre-Louis's avatar
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`,... · 9cc72df7
      Pierre-Louis authored
      Use `curly_braces_in_flow_control_structures` for `foundation`, `gestures`, `painting`, `physics` (#104610)
      
      * Use `curly_braces_in_flow_control_structures` for `foundation`
      
      * Use `curly_braces_in_flow_control_structures` for `gestures`
      
      * Use `curly_braces_in_flow_control_structures` for `painting`
      
      * Use `curly_braces_in_flow_control_structures` for `physics`
      
      * fix comments
      
      * remove trailing space
      
      * fix TODO style
      9cc72df7
  5. 14 Apr, 2022 1 commit
  6. 01 Mar, 2022 1 commit
  7. 08 Oct, 2021 3 commits
  8. 04 Oct, 2021 1 commit
  9. 18 Aug, 2021 1 commit
  10. 23 Apr, 2021 1 commit
  11. 18 Mar, 2021 1 commit
  12. 16 Nov, 2020 1 commit
  13. 05 Oct, 2020 1 commit
  14. 03 Oct, 2020 1 commit
  15. 01 Oct, 2020 2 commits
    • Dan Field's avatar
      Revert dispose images when done (#67100) · 473358d9
      Dan Field authored
      * Revert "docs for image disposal (#67066)"
      
      This reverts commit bcb2ac5a.
      
      * Revert "Dispose of images after using them (#66688)"
      
      This reverts commit a7954691.
      473358d9
    • Dan Field's avatar
      Dispose of images after using them (#66688) · a7954691
      Dan Field authored
      * Dispose of images after using them
      Adds ImageInfo.clone, ImageInfo.dispose, and ImageInfo.isCloneOf.
      Makes all stateful holders of ui.Image objects properly clone and dispose of them.
      Behavior change for ImageStreamCompleter: Removing the last listener after registering at least one listener results in the object being disposed, and new listeners cannot be added, unless a keepAlive handle is created.
      Makes all non-stateful holders of ui.Image (i.e. paintImage and RawImage) assert that whoever gave the image to them has not disposed it on them.
      a7954691
  16. 22 Sep, 2020 1 commit
  17. 26 Aug, 2020 1 commit
  18. 26 Jun, 2020 1 commit
  19. 11 Jun, 2020 1 commit
  20. 30 Jan, 2020 1 commit
  21. 16 Dec, 2019 1 commit
  22. 27 Nov, 2019 1 commit
    • Ian Hickson's avatar
      License update (#45373) · 449f4a66
      Ian Hickson authored
      * Update project.pbxproj files to say Flutter rather than Chromium
      
      Also, the templates now have an empty organization so that we don't cause people to give their apps a Flutter copyright.
      
      * Update the copyright notice checker to require a standard notice on all files
      
      * Update copyrights on Dart files. (This was a mechanical commit.)
      
      * Fix weird license headers on Dart files that deviate from our conventions; relicense Shrine.
      
      Some were already marked "The Flutter Authors", not clear why. Their
      dates have been normalized. Some were missing the blank line after the
      license. Some were randomly different in trivial ways for no apparent
      reason (e.g. missing the trailing period).
      
      * Clean up the copyrights in non-Dart files. (Manual edits.)
      
      Also, make sure templates don't have copyrights.
      
      * Fix some more ORGANIZATIONNAMEs
      449f4a66
  23. 16 Oct, 2019 1 commit
  24. 15 Oct, 2019 2 commits
  25. 24 Sep, 2019 1 commit
  26. 21 May, 2019 1 commit
    • Todd Volkert's avatar
      Add some sanity to the ImageStream listener API (#32936) · 592f81e7
      Todd Volkert authored
      The current API was broken in that you registered multiple
      callbacks at once, but when you removed listeners, only the
      primary listener was used to determine what was removed.
      This led to unintuitive cases where the caller could get
      unexpected behavior.
      
      This updates the API to add and remove listeners using
      a newly introduced [ImageStreamListener] object, a value
      object that has references to the individual callbacks
      that may fire.
      
      flutter/flutter#24722
      flutter/flutter#32374
      flutter/flutter#32935
      592f81e7
  27. 29 Mar, 2019 1 commit
  28. 28 Mar, 2019 1 commit
  29. 09 Mar, 2019 1 commit
  30. 21 Feb, 2019 1 commit
  31. 20 Feb, 2019 1 commit
  32. 07 Jan, 2019 1 commit
  33. 03 Jan, 2019 1 commit
    • Jonah Williams's avatar
      Ensure all errors thrown by image providers can be caught by developers. (#25980) · d84879d9
      Jonah Williams authored
      * Ensure all errors thrown by image providers can be caught by developers.
      
      Add an `onError` parameter to the ImageCache.putIfAbsent method.
      In the event that an error is thrown when resolving an image, catch if
      this parameter is provided. Use the onError parameter to ensure that all
      errors thrown are forwarded to the ImageStream error channel instead of
      directly into the void.
      d84879d9
  34. 12 Sep, 2018 1 commit
  35. 06 Sep, 2018 1 commit
  36. 12 Jun, 2018 1 commit