- 09 Nov, 2022 1 commit
-
-
Greg Spencer authored
* Add the channel paramter to the Dartpad samples * Add sanity check test * Make sample_id more generic
-
- 21 Sep, 2022 1 commit
-
-
Greg Spencer authored
-
- 11 Aug, 2022 2 commits
-
-
Ian Hickson authored
-
Ian Hickson authored
-
- 12 May, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 25 Feb, 2022 1 commit
-
-
Greg Spencer authored
-
- 13 Dec, 2021 1 commit
-
-
Greg Spencer authored
-
- 28 Sep, 2021 1 commit
-
-
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.
-
- 12 Aug, 2021 1 commit
-
-
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.
-
- 10 May, 2021 1 commit
-
-
Michael Goderbauer authored
-
- 23 Mar, 2021 1 commit
-
-
Shi-Hao Hong authored
* Create state restoration templates, * Update existing state restoration samples to use the new templates * Add to README, decided to require stateful widgets to include RestorationMixin
-
- 12 Mar, 2021 1 commit
-
-
Greg Spencer authored
Update samples to use repo analysis options, Fix sample templates and a ton of analyzer issues (#77868)
-
- 06 Jan, 2021 1 commit
-
-
Shi-Hao Hong authored
* Remove all usage of no_null_safety in API docs workflows
-
- 11 Dec, 2020 1 commit
-
-
Michael Goderbauer authored
-
- 26 Oct, 2020 1 commit
-
-
Jonah Williams authored
-
- 22 Oct, 2020 1 commit
-
-
Jonah Williams authored
Add a language version so the snippets do not opt-in automatically. Fixes #68719
-
- 21 Aug, 2020 1 commit
-
-
Ian Hickson authored
-
- 23 Jul, 2020 1 commit
-
-
Yazeed Al-Khalaf authored
*
Fix Spelling Issues in Main README.md * Fix spelling issues in dev README.md * Fix spelling issues in complex_layout README.md * Fix spelling issues in macrobenchmarks README.md * Fix spelling issues in platform_views_layout README.md * Fix spelling issues in test_Apps/stocks README.md * Fix spelling issues in bots README.md * Spell Check dev/ci README.md * Spell Check dev/ci/docker_linux README.md * Spell Check dev/devicelab README.md * Spell Check dev/docs README.md * Spell Check dev/snippets README.md * Spell Check dev/snippets/config/templates README.md * Spell Check dev/tools/gen_keycodes README.md * Spell Check dev/tools/vitool README.md * Spell Check examples/catalog README.md * Spell Check examples/flutter_view README.md * Spell Check examples/image_list README.md * Spell Check examples/layers README.md * Spell Check examples/platform_channel README.md * Spell Check examples/platform_channel_swift README.md * Spell Check examples/platform_view README.md * Spell Check packages/_flutter_web_build_script README.md * Spell Check packages/flutter_localizations README.md * Spell Check packages/flutter_tools README.md * Spell Check CODE_OF_CONDUCT.md * Spell Check dev/integration_test/android_splash_screens/splash_Screen_load_rotate README.md * Spell Check dev/integration_test/android_views README.md * Spell Check dev/integration_tests/flutter_driver_screenshot_test README.md * Spell Check dev/integration_tests/flutter_gallery README.md * Spell Check dev/integration_tests/gradle_deprecated_settings README.md * Spell Check dev/integration_tests/ios_add2app_life_cycle README.md * Spell Check dev/integration_tests/ios_host_app README.md * Spell Check dev/integration_tests/ios_platform_view_tests README.md * Spell Check dev/automated_tests/flutter_test README.md * Spell Check .github/PULL_REQUEST_TEMPLATE.md * Spell Check .hithub/ISSUE_TEMPLATE/ACTIVATION.md * Spell Check .github/ISSUE_TEMPLATE/BUG.md * Spell Check .github/ISSUE_TEMPLATE/feature_request.md * Spell Check .github/ISSUE_TEMPLATE/performance_others.md * Spell Check .github/ISSUE_TEMPLATE/performance_speed.md * Spell Check packages/flutter_tools/doc/daemon.md * Spell Check packages/flutter_tools/fuchsia_enrtypoint_shim/README.md * Minimize line to 80 columns * Minimize line to 80 columns * Fix Typo * Chnaged numbers to 1 for testing purposes * Changed numbers to 1 for testing purposes * Remove 'a' which is a typo * Change a sentence to be better * Remove 'a' which is a typo * Fix small issue * Fix small typo * Fix some typos * Remove trailing space * Remove trailing space * Fix small typo * Fix Typo * Fix small bug
-
- 09 Jul, 2020 1 commit
-
-
Kate Lovett authored
-
- 10 Mar, 2020 1 commit
-
-
Greg Spencer authored
This adds a sample for InheritedNotifier, and converts a couple of other samples to be DartPad samples. I also added a new sample template stateful_widget_material_ticker, which adds a TickerProviderStateMixin to the state object so that animation controllers can be created there easily.
-
- 10 Feb, 2020 1 commit
-
-
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.
-
- 07 Feb, 2020 1 commit
-
-
Greg Spencer authored
Adds the channel to docs generation for dartpad samples, since the new query parameter was added in dart-lang/dart-pad#1462
-
- 08 Jan, 2020 1 commit
-
-
Greg Spencer authored
-
- 27 Nov, 2019 1 commit
-
-
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
-
- 15 Nov, 2019 1 commit
-
-
Greg Spencer authored
This fixes the snippet code output so that it includes the name of the element that it is a snippet for in the first line.
-
- 24 Sep, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 16 Sep, 2019 2 commits
-
-
MH Johnson authored
-
MH Johnson authored
* Create 'center' template
-
- 10 Sep, 2019 1 commit
-
-
Andrew Brogdon authored
-
- 10 Jul, 2019 1 commit
-
-
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.
-
- 09 Jul, 2019 1 commit
-
-
Michael Goderbauer authored
-
- 10 Jun, 2019 1 commit
-
-
Shi-Hao Hong authored
* Add dartdoc generation README helper images * Add test doc generation workflow section * Add info about interpolating into templates
-
- 29 May, 2019 1 commit
-
-
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
-
- 25 May, 2019 1 commit
-
-
Chris Bracken authored
Corects a bnuch of typeos throuhgout teh Fluter codebsae. Made use of the `misspell` tool: https://github.com/client9/misspell
-
- 24 May, 2019 1 commit
-
-
Todd Volkert authored
-
- 25 Apr, 2019 1 commit
-
-
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
-
- 23 Apr, 2019 1 commit
-
-
Greg Spencer authored
This reverts commit 4218c0bc.
-
- 22 Apr, 2019 1 commit
-
-
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
-
- 15 Feb, 2019 1 commit
-
-
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
-
- 13 Dec, 2018 1 commit
-
-
Greg Spencer authored
Adds documentation for the stateless widget template, and adds an "imports" section to both templates.
-