Skip to content

Update samples to work with Dartpad, and convert all that make sense to use Dartpad#50377

Merged
gspencergoog merged 2 commits intoflutter:masterfrom
gspencergoog:dartpad_snippets
Feb 10, 2020
Merged

Update samples to work with Dartpad, and convert all that make sense to use Dartpad#50377
gspencergoog merged 2 commits intoflutter:masterfrom
gspencergoog:dartpad_snippets

Conversation

@gspencergoog
Copy link
Copy Markdown
Contributor

Description

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.

Tests

  • No test changes were needed (only docs changes made).

Breaking Change

  • No, this is not a breaking change.

@fluttergithubbot fluttergithubbot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. c: contributor-productivity Team-specific productivity, code health, technical debt. labels Feb 7, 2020
@fluttergithubbot
Copy link
Copy Markdown
Contributor

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Copy Markdown
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lookin' good! I just notice that this change removes these handy little features:

Screen Shot 2020-02-07 at 4 22 31 PM

Touched base offline, do you want to update the template in this change, or in another after?

@gspencergoog
Copy link
Copy Markdown
Contributor Author

I'll just add it in this one: it's a three line change.

Copy link
Copy Markdown
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@gspencergoog gspencergoog merged commit 9fb781a into flutter:master Feb 10, 2020
@gspencergoog gspencergoog deleted the dartpad_snippets branch February 10, 2020 18:00
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants