mirror of
https://github.com/flutter/flutter
synced 2024-09-19 08:11:56 +00:00
d0491dcf15
* Add the channel paramter to the Dartpad samples * Add sanity check test * Make sample_id more generic
19 lines
900 B
HTML
19 lines
900 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&null_safety=true&sample_id={{id}}&sample_channel={{channel}}&channel={{channel}}">
|
|
</iframe>
|
|
</div>
|
|
{@end-inject-html} |