1. 11 Dec, 2020 1 commit
  2. 26 Oct, 2020 1 commit
  3. 22 Oct, 2020 1 commit
  4. 21 Aug, 2020 1 commit
  5. 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
  6. 09 Jul, 2020 1 commit
  7. 10 Mar, 2020 1 commit
  8. 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
  9. 07 Feb, 2020 1 commit
  10. 08 Jan, 2020 1 commit
  11. 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
  12. 15 Nov, 2019 1 commit
  13. 24 Sep, 2019 1 commit
  14. 16 Sep, 2019 2 commits
  15. 10 Sep, 2019 1 commit
  16. 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
  17. 09 Jul, 2019 1 commit
  18. 10 Jun, 2019 1 commit
  19. 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
  20. 25 May, 2019 1 commit
  21. 24 May, 2019 1 commit
  22. 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
  23. 23 Apr, 2019 1 commit
  24. 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
  25. 15 Feb, 2019 1 commit
    • Greg Spencer's avatar
      Remove remaining "## Sample code" segments, and fix the snippet generator. (#27793) · 262f12b4
      Greg Spencer authored
      This converts all remaining "## Sample code" segments into snippets, and fixes
      the snippet generator to handle multiple snippets in the same dartdoc block
      properly.
      
      I also generated, compiled, and ran each of the existing application samples,
      and fixed them up to be more useful and/or just run without errors.
      
      This PR fixes these problems with examples:
      
      1. Switching tabs in a snippet now works if there is more than one snippet in
         a single dartdoc block.
      2. Generation of snippet code now works if there is more than one snippet.
      3. Contrast of text and links in the code sample block has been improved to
         recommended levels.
      4. Added five new snippet templates, including a "freeform" template to make
         it possible to show examples that need to change the app instantiation.
      5. Fixed several examples to run properly, a couple by adding the "Scaffold"
         widget to the template, a couple by just fixing their code.
      6. Fixed visual look of some of the samples when they run by placing many
         samples inside of a Scaffold.
      7. In order to make it easier to run locally, changed the sample analyzer to
         remove the contents of the supplied temp directory before running, since
         having files that hang around is problematic (only a problem when running
         locally with the `--temp` argument).
      8. Added a `SampleCheckerException` class, and handle sample checking
         exceptions more gracefully.
      9. Deprecated the old "## Sample code" designation, and added enforcement for
         the deprecation.
      10. Removed unnecessary `new` from templates (although they never appeared in
         the samples thanks to dartfmt, but still).
      
      Fixes #26398
      Fixes #27411
      262f12b4
  26. 13 Dec, 2018 1 commit
  27. 08 Nov, 2018 1 commit
  28. 07 Nov, 2018 1 commit
    • Greg Spencer's avatar
      Fixes several bugs in samples, quotes HTML properly, and pre-compiles snippet tool. (#24020) · 094f93df
      Greg Spencer authored
      When converting all of the samples to use the snippet tool, I encountered some bugs/shortcomings:
      
      1. The document production took 90 minutes, since the snippet tool was being invoked from the command line each time. I fixed this by snapshotting the executable before running, so it's down to 7 minutes.
      
      2. The sample code was not being properly escaped by the snippet tool, so generics were causing issues in the HTML output. It is now quoted.
      
      3. Code examples that used languages other than Dart were not supported. Anything that highlight.js was compiled for dartdoc with is now supported.
      
      4. The comment color for highlight.js was light grey on white, which was pretty unreadable. It's now dark green and bold.
      094f93df
  29. 05 Nov, 2018 1 commit
    • Greg Spencer's avatar
      Rewrite the analyze-sample-code script to also analyze snippets (#23893) · 202b045b
      Greg Spencer authored
      This rewrites the sample code analysis script to be a little less of a hack (but still not pretty), and to handle snippets as well.
      
      It also changes the semantics of how sample code is handled: the namespace for the sample code is now limited to the file that it appears in, so some additional "Examples can assume:" blocks were added. The upside of this is that there will be far fewer name collisions.
      
      I fixed the output too: no longer will you get 4000 lines of numbered output with the error at the top and have to grep for the actual problem. It gives the filename and line number of the original location of the code (in the comment in the tree), and prints out the source code on the line that caused the problem along with the error.
      
      For snippets, it prints out the location of the start of the snippet and the source code line that causes the problem. It can't print out the original line, because snippets get formatted when they are written, so the line might not be in the same place.
      202b045b
  30. 30 Oct, 2018 1 commit
    • Greg Spencer's avatar
      Allow users to create samples using flutter create. (#23584) · f9c6f305
      Greg Spencer authored
      This adds flutter create --sample which allows users to execute a command which will create a working sample app from samples embedded in the API docs.
      
      The command looks something like this:
      
      flutter create --sample=chip.DeletableChipAttributes.onDeleted mysample
      f9c6f305
  31. 23 Oct, 2018 1 commit
    • Greg Spencer's avatar
      Dartdoc snippet extension to inject full featured code snippets in to API docs. (#23281) · 65d3ddd5
      Greg Spencer authored
      This creates a custom dartdoc tool that will generate snippet blocks in our API docs that allow the user to copy easily to the clipboard, and will also embed the snippet code into a template to show it in a larger context with an app.
      
      This PR adds the snippet tool, a template, and a couple of HTML skeleton files, one for snippets that are designed to be in an application setting, and one where it simply puts a nice container around existing snippets, making them easier to copy to the clipboard.
      65d3ddd5