1. 05 Sep, 2023 1 commit
  2. 25 Aug, 2023 1 commit
  3. 19 May, 2023 1 commit
  4. 22 Mar, 2023 1 commit
  5. 24 Jan, 2023 1 commit
  6. 13 Jun, 2022 1 commit
  7. 26 May, 2022 1 commit
  8. 30 Apr, 2022 1 commit
  9. 29 Apr, 2022 1 commit
  10. 26 Apr, 2022 1 commit
  11. 14 Apr, 2022 1 commit
  12. 22 Feb, 2022 1 commit
  13. 16 Feb, 2022 1 commit
  14. 03 Feb, 2022 1 commit
  15. 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
  16. 29 Sep, 2021 1 commit
  17. 28 Sep, 2021 1 commit
    • Greg Spencer's avatar
      Add smoke tests for all the examples, fix 17 broken examples. (#89021) · ab2b0851
      Greg Spencer authored
      This adds a smoke test for every single API example. It also fixes 17 tests that had bugs in them, or were otherwise broken, and even fixes one actual bug in the framework, and one limitation in the framework.
      
      The bug in the framework is that NetworkImage's _loadAsync method had await response.drain<List<int>>();, but if the response is null, it will throw a cryptic exception saying that Null can't be assigned to List<int>. The fix was just to use await response.drain<void>(); instead.
      
      The limitation is that RelativePositionedTransition takes an Animation<Rect> rect parameter, and if you want to use a RectTween with it, the value emitted there is Rect?, and one of the examples was just casting from Animation<Rect> to Animation<Rect?>, which is invalid, so I modified RelativePositionedTransition to take a Rect? and just use Rect.zero if the rect is null.
      ab2b0851
  18. 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
  19. 15 Jul, 2021 1 commit
  20. 14 Jul, 2021 3 commits
  21. 13 Jul, 2021 2 commits
  22. 02 Jun, 2021 1 commit
  23. 10 May, 2021 1 commit
  24. 22 Apr, 2021 1 commit
  25. 21 Apr, 2021 1 commit
  26. 31 Mar, 2021 2 commits
  27. 12 Mar, 2021 1 commit
  28. 09 Mar, 2021 1 commit
  29. 06 Mar, 2021 1 commit
  30. 17 Feb, 2021 1 commit
  31. 04 Feb, 2021 1 commit
  32. 30 Dec, 2020 1 commit
  33. 02 Nov, 2020 1 commit
  34. 31 Oct, 2020 1 commit
  35. 26 Oct, 2020 1 commit
  36. 21 Oct, 2020 1 commit