1. 23 May, 2023 1 commit
  2. 18 Apr, 2023 1 commit
  3. 09 Nov, 2022 1 commit
  4. 21 Sep, 2022 1 commit
  5. 11 Aug, 2022 2 commits
  6. 12 May, 2022 1 commit
  7. 25 Feb, 2022 1 commit
  8. 13 Dec, 2021 1 commit
  9. 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
  10. 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
  11. 10 May, 2021 1 commit
  12. 23 Mar, 2021 1 commit
  13. 12 Mar, 2021 1 commit
  14. 06 Jan, 2021 1 commit
  15. 11 Dec, 2020 1 commit
  16. 26 Oct, 2020 1 commit
  17. 22 Oct, 2020 1 commit
  18. 21 Aug, 2020 1 commit
  19. 23 Jul, 2020 1 commit
    • Yazeed Al-Khalaf's avatar
      :black_nib: Spell Check All `.md` Files Related to Flutter :blue_heart: (#61564) · d41b1fbb
      Yazeed Al-Khalaf authored
      * :bug: Fix Spelling Issues in Main README.md
      
      * :bug: Fix spelling issues in dev README.md
      
      * :bug: Fix spelling issues in complex_layout README.md
      
      * :bug: Fix spelling issues in macrobenchmarks README.md
      
      * :bug: Fix spelling issues in platform_views_layout README.md
      
      * :bug: Fix spelling issues in test_Apps/stocks README.md
      
      * :bug: Fix spelling issues in bots README.md
      
      * :black_nib: Spell Check dev/ci README.md
      
      * :black_nib: Spell Check dev/ci/docker_linux README.md
      
      * :black_nib: Spell Check dev/devicelab README.md
      
      * :black_nib: Spell Check dev/docs README.md
      
      * :black_nib: Spell Check dev/snippets README.md
      
      * :black_nib: Spell Check dev/snippets/config/templates README.md
      
      * :black_nib: Spell Check dev/tools/gen_keycodes README.md
      
      * :black_nib: Spell Check dev/tools/vitool README.md
      
      * :black_nib: Spell Check examples/catalog README.md
      
      * :black_nib: Spell Check examples/flutter_view README.md
      
      * :black_nib: Spell Check examples/image_list README.md
      
      * :black_nib: Spell Check examples/layers README.md
      
      * :black_nib: Spell Check examples/platform_channel README.md
      
      * :black_nib: Spell Check examples/platform_channel_swift README.md
      
      * :black_nib: Spell Check examples/platform_view README.md
      
      * :black_nib: Spell Check packages/_flutter_web_build_script README.md
      
      * :black_nib: Spell Check packages/flutter_localizations README.md
      
      * :black_nib: Spell Check packages/flutter_tools README.md
      
      * :black_nib: Spell Check CODE_OF_CONDUCT.md
      
      * :black_nib: Spell Check dev/integration_test/android_splash_screens/splash_Screen_load_rotate README.md
      
      * :black_nib: Spell Check dev/integration_test/android_views README.md
      
      * :black_nib: Spell Check dev/integration_tests/flutter_driver_screenshot_test README.md
      
      * :black_nib: Spell Check dev/integration_tests/flutter_gallery README.md
      
      * :black_nib: Spell Check dev/integration_tests/gradle_deprecated_settings README.md
      
      * :black_nib: Spell Check dev/integration_tests/ios_add2app_life_cycle README.md
      
      * :black_nib: Spell Check dev/integration_tests/ios_host_app README.md
      
      * :black_nib: Spell Check dev/integration_tests/ios_platform_view_tests README.md
      
      * :black_nib: Spell Check dev/automated_tests/flutter_test README.md
      
      * :black_nib: Spell Check .github/PULL_REQUEST_TEMPLATE.md
      
      * :black_nib: Spell Check .hithub/ISSUE_TEMPLATE/ACTIVATION.md
      
      * :black_nib: Spell Check .github/ISSUE_TEMPLATE/BUG.md
      
      * :black_nib: Spell Check .github/ISSUE_TEMPLATE/feature_request.md
      
      * :black_nib: Spell Check .github/ISSUE_TEMPLATE/performance_others.md
      
      * :black_nib: Spell Check .github/ISSUE_TEMPLATE/performance_speed.md
      
      * :black_nib: Spell Check packages/flutter_tools/doc/daemon.md
      
      * :black_nib: Spell Check packages/flutter_tools/fuchsia_enrtypoint_shim/README.md
      
      * :black_nib: Minimize line to 80 columns
      
      * :black_nib: Minimize line to 80 columns
      
      * :black_nib: Fix Typo
      
      * :black_nib: Chnaged numbers to 1 for testing purposes
      
      * :black_nib: Changed numbers to 1 for testing purposes
      
      * :x: Remove 'a' which is a typo
      
      * :black_nib: Change a sentence to be better
      
      * :black_nib: Remove 'a' which is a typo
      
      * :black_nib: Fix small issue
      
      * :black_nib: Fix small typo
      
      * :black_nib: Fix some typos
      
      * :x: Remove trailing space
      
      * :x: Remove trailing space
      
      * :bug: Fix small typo
      
      * :black_nib: Fix Typo
      
      * :bug: Fix small bug
      d41b1fbb
  20. 09 Jul, 2020 1 commit
  21. 10 Mar, 2020 1 commit
  22. 10 Feb, 2020 1 commit
    • Greg Spencer's avatar
      Update samples to work with Dartpad, and convert all that make… (#50377) · 9fb781a5
      Greg Spencer authored
      This PR modifies the existing API docs samples to use DartPad so that all of the samples are now interactive apps on the API docs site.
      
      It also removes the restriction for the max width of the description area so that the dartpad region can expand horizontally.
      
      I updated the first paragraph on the API docs to indicate that Flutter is more than just mobile now (same text as the README.md at the top level).
      
      I modified a few of the examples so that they looked nicer, and fit better on the page.
      
      I added the sample description text above each DartPad instance, since that often defines the context of the example.
      
      I removed animations and images when they were redundant with the sample content. There were a few that made sense to keep, so I did.
      9fb781a5
  23. 07 Feb, 2020 1 commit
  24. 08 Jan, 2020 1 commit
  25. 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
  26. 15 Nov, 2019 1 commit
  27. 24 Sep, 2019 1 commit
  28. 16 Sep, 2019 2 commits
  29. 10 Sep, 2019 1 commit
  30. 10 Jul, 2019 1 commit
    • Greg Spencer's avatar
      Add anchors to samples (#35906) · 67ee3e19
      Greg Spencer authored
      This adds an "anchor button" to each of the samples so that the user can link to individual samples instead of having to link to just the page. Clicking on the anchor button jumps to the anchor, as well as copying the anchor URL to the clipboard.
      
      There is some oddness in the implementation: because dartdoc uses a <base> tag, the href for the link can't just be "#id", it has to calculate the URL from the current window href. I do that in the onmouseenter and onclick because onload doesn't get triggered for <a> tags (and onmouseenter doesn't get triggered for mobile platforms), but I still want the href to be updated before someone right-clicks it to copy the URL.
      67ee3e19
  31. 09 Jul, 2019 1 commit
  32. 10 Jun, 2019 1 commit
  33. 29 May, 2019 1 commit
    • Todd Volkert's avatar
      Add loading support to Image (#33369) · 68841469
      Todd Volkert authored
      This adds two new builders to the `Image` class:
      
      * `frameBuilder`, which allows callers to control the widget
        created by an [Image].
      * `loadingBuilder`, which allows callers fine-grained control
        over how to display loading progress of an image to the user.
      
      `FadeInImage` can be simplified by migrating to the new API.
      This is done in a follow-on commit.
      
      https://github.com/flutter/flutter/issues/32374
      68841469
  34. 25 May, 2019 1 commit
  35. 24 May, 2019 1 commit
  36. 25 Apr, 2019 1 commit
    • Greg Spencer's avatar
      [Re-Land] Implement focus traversal for desktop platforms. (#31614) · 7775c237
      Greg Spencer authored
      This re-lands the Focus changes in #30040. Correctness changes in routes.dart, and removes the automatic requesting of focus on reparent when there is no current focus, which caused undesirable selections.
      
      Addresses #11344, #1608, #13264, and #1678
      Fixes #30084
      Fixes #26704
      7775c237
  37. 23 Apr, 2019 1 commit
  38. 22 Apr, 2019 1 commit
    • Greg Spencer's avatar
      Implement focus traversal for desktop platforms, shoehorn edition. (#30040) · 4218c0bc
      Greg Spencer authored
      Implements focus traversal for desktop platforms, including re-implementing the existing focus manager and focus tree.
      
      This implements a Focus widget that can be put into a widget tree to allow input focus to be given to a particular part of a widget tree.
      
      It incorporates with the existing FocusScope and FocusNode infrastructure, and has minimal breakage to the API, although FocusScope.reparentIfNeeded is removed, replaced by a call to FocusAttachment.reparent(), so this is a breaking change:
      
      FocusScopeNodes must now be attached to the focus tree using FocusScopeNode.attach, which takes a context and an optional onKey callback, and returns a FocusAttachment that should be kept by the widget that hosts the FocusScopeNode. This is necessary because of the need to make sure that the focus tree reflects the widget hierarchy.
      
      Callers that used to call FocusScope(context).reparentIfNeeded in their build method will call reparent  on a FocusAttachment instead, which they will obtain by calling FocusScopeNode.attach in their initState method. Widgets that own FocusNodes will need to call dispose on the focus node in their dispose method.
      
      Addresses #11344, #1608, #13264, and #1678
      Fixes #30084
      Fixes #26704
      4218c0bc