dartpad-sample.html 900 Bytes
Newer Older
1 2
{@inject-html}
<a name="{{id}}"></a>
3 4
<div class="snippet snippet-container anchor-container" id="longSnippet{{serial}}">
    {{description}}
5
    <a class="anchor-button-overlay anchor-button" title="Copy link to clipboard"
6 7 8
        onmouseenter="fixHref(this, '{{id}}');" onclick="fixHref(this, '{{id}}'); copyStringToClipboard(this.href);"
        href="#">
        <i class="material-icons anchor-image">link</i>
9
    </a>
10 11
    <div class="snippet-description">
        <p>To create a local project with this code sample, run:<br />
12
            <span class="snippet-create-command">flutter create --sample={{id}} mysample</span>
13
        </p>
14
    </div>
15
    <iframe class="snippet-dartpad"
16
        src="https://dartpad.dev/embed-flutter.html?split=60&amp;run=true&amp;null_safety=true&amp;sample_id={{id}}&amp;sample_channel={{channel}}&amp;channel={{channel}}">
17
    </iframe>
18
</div>
19
{@end-inject-html}