mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![auto-submit[bot]](/assets/img/avatar_default.png)
Reverts flutter/flutter#144329 Initiated by: goderbauer Reason for reverting: broke postsubmit doc generation. Original PR Author: goderbauer Reviewed By: {devoncarew, HansMuller, gspencergoog} This change reverts the following previous change: Original Description: Dartpad doesn't have a "master" channel anymore, it got renamed to "main". Sadly, specifying "master" is now falling back to "stable" which breaks some of our examples in the docs that require a more current Flutter version, e.g. https://main-api.flutter.dev/flutter/material/TextButton-class.html
19 lines
879 B
HTML
19 lines
879 B
HTML
{@inject-html}
|
|
<a name="{{id}}"></a>
|
|
<div class="snippet snippet-container anchor-container" id="longSnippet{{serial}}">
|
|
{{description}}
|
|
<a class="anchor-button-overlay anchor-button" title="Copy link to clipboard"
|
|
onmouseenter="fixHref(this, '{{id}}');" onclick="fixHref(this, '{{id}}'); copyStringToClipboard(this.href);"
|
|
href="#">
|
|
<i class="material-icons anchor-image">link</i>
|
|
</a>
|
|
<div class="snippet-description">
|
|
<p>To create a local project with this code sample, run:<br />
|
|
<span class="snippet-create-command">flutter create --sample={{id}} mysample</span>
|
|
</p>
|
|
</div>
|
|
<iframe class="snippet-dartpad"
|
|
src="https://dartpad.dev/embed-flutter.html?split=60&run=true&sample_id={{id}}&sample_channel={{channel}}&channel={{channel}}">
|
|
</iframe>
|
|
</div>
|
|
{@end-inject-html} |