1. 25 Mar, 2022 1 commit
  2. 21 Mar, 2022 1 commit
  3. 18 Mar, 2022 1 commit
  4. 04 Mar, 2022 1 commit
  5. 03 Mar, 2022 1 commit
  6. 01 Mar, 2022 1 commit
  7. 23 Feb, 2022 1 commit
  8. 22 Feb, 2022 1 commit
  9. 03 Feb, 2022 2 commits
  10. 26 Jan, 2022 1 commit
  11. 21 Jan, 2022 1 commit
    • Marcel Kirchhoff's avatar
      Call image stream listeners asynchronously if added asynchronously (#95525) · c1e24765
      Marcel Kirchhoff authored
      * Call image stream listeners with new flag
      
      * Make _synchronousCall private
      
      * Rename _synchronousCall parameter to be more descriptive and add more documentation
      
      * Rename _hasInitialListeners to _addingInitialListeners and provide a better explanation
      
      * Formatting fix
      
      * Add tests
      
      * Remove dependency on decoration_test.dart
      
      * Simplify tests
      
      * Remove empty line in comment
      
      * Documentation
      
      * Trigger tests
      
      * Trigger tests
      
      * Flip boolean value
      c1e24765
  12. 13 Jan, 2022 1 commit
  13. 12 Dec, 2021 1 commit
  14. 11 Dec, 2021 1 commit
  15. 07 Dec, 2021 1 commit
  16. 04 Dec, 2021 1 commit
  17. 01 Dec, 2021 1 commit
  18. 11 Nov, 2021 1 commit
  19. 08 Nov, 2021 1 commit
  20. 03 Nov, 2021 1 commit
  21. 27 Oct, 2021 1 commit
  22. 08 Oct, 2021 3 commits
  23. 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
  24. 29 Sep, 2021 1 commit
  25. 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
  26. 11 Sep, 2021 1 commit
  27. 07 Sep, 2021 1 commit
  28. 26 Aug, 2021 2 commits
  29. 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
  30. 24 Aug, 2021 1 commit
  31. 20 Aug, 2021 1 commit
  32. 19 Aug, 2021 1 commit
  33. 18 Aug, 2021 1 commit
  34. 16 Aug, 2021 1 commit
  35. 12 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Switch document generation to use the snippets package (#87231) · 10e4b040
      Greg Spencer authored
      Switch document generation to use the snippets package instead of the snippets code in the Flutter repo. In the process, some bugs in sample code analysis have been fixed, and I've fixed some more errors in the samples.
      
      This will allow the snippets package to be developed separately from the Flutter repo, and reduce the code in the Flutter repo.
      
      The snippets code is deleted in this PR.
      
      I also converted some comments in the snippet templates to be regular comments instead of doc comments, because having a doc comment block before the imports causes the Dart import sorter to lose the comment. They should have been regular comments in the first place.
      
      The snippets package resides in the assets-for-api-docs repo.
      
      The sample analysis has also been converted to be run in parallel, and I've bumped the Dartdoc version to 1.0.2.
      10e4b040
  36. 04 Aug, 2021 1 commit
    • Greg Spencer's avatar
      Fix the sample code analyzer to properly handle `missing_identifier` errors (#87593) · 169bb1b7
      Greg Spencer authored
      This fixes how the sample analyzer handles missing_identifier errors. It was looking at the wrong line, and missing an else clause, so it was silently allowing missing_identifier errors to pass.
      
      In addition, this fixes the sample generation so that it uses the correct filename for the output files: it previously was looking for the first line that had a filename, which was meant to indicate a non-generated line. This change adds a new Line.generated constructor for generated lines, so that they can also have the correct filename associated with them.
      169bb1b7