1. 15 Oct, 2021 1 commit
  2. 08 Oct, 2021 3 commits
  3. 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
  4. 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
  5. 20 Sep, 2021 1 commit
  6. 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
  7. 15 Jul, 2021 1 commit
  8. 14 Jul, 2021 3 commits
  9. 13 Jul, 2021 2 commits
  10. 01 Jul, 2021 1 commit
  11. 28 Jun, 2021 1 commit
  12. 12 Jun, 2021 1 commit
  13. 20 May, 2021 1 commit
  14. 19 May, 2021 1 commit
  15. 07 May, 2021 1 commit
  16. 04 May, 2021 1 commit
  17. 28 Apr, 2021 1 commit
  18. 27 Apr, 2021 1 commit
  19. 22 Apr, 2021 1 commit
  20. 21 Apr, 2021 1 commit
  21. 31 Mar, 2021 2 commits
  22. 26 Mar, 2021 1 commit
  23. 18 Mar, 2021 1 commit
  24. 12 Mar, 2021 1 commit
  25. 06 Mar, 2021 1 commit
  26. 10 Feb, 2021 1 commit
  27. 15 Jan, 2021 1 commit
  28. 07 Jan, 2021 1 commit
    • Ian Hickson's avatar
      Minor doc, style, and perf updates to Navigator/Routes (#71689) · fdab8546
      Ian Hickson authored
      * Minor doc, style, and perf updates to Navigator/Routes
      
      These are minor fixes I ended up making while working on a larger
      project that never went anywhere.
      
      - Used a ColoredBox instead of a DecoratedBox for ModalBarrier
        (probably a trivial memory/perf win).
      
      - A bunch of Navigator documentation fixes around when things rebuild.
      
      - Mark routes dirty when the Navigator has a dependency change. I
        cannot find a way to test this because as far as I can tell it makes
        no actual difference to when things rebuild because whenever the
        Navigator rebuilds the Overlay rebuilds and whenever that happens
        every OverlayEntry rebuilds, but in theory that's not guaranteed so
        this is sort of a correctness fix. It may even be a perf loss. We do
        something similar in didUpdateWidget already. I could be convinced
        to maybe remove these...
      
      - Make ModalRoute.filter public like everything else.
      
      - Made ModalRoute update its barrier when it gets an update, in case
        e.g. the modal barrier depends on inherited widgets via the
        navigator context. Again, not sure of any way to detect this, it
        might actually be moot, but it seems to be the technically correct
        solution?
      
      - Minor style fixes.
      
      All in all I couldn't figure out a way to test any of this (I wrote
      multiple large tests but it turns out they all already pass on master
      and are effectively redundant with existing tests).
      
      * Remove extraneous blank line
      fdab8546
  29. 05 Jan, 2021 1 commit
  30. 31 Dec, 2020 1 commit
  31. 24 Dec, 2020 2 commits
  32. 11 Dec, 2020 1 commit
  33. 20 Nov, 2020 1 commit