mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00

## Description This updates the copy icon for copying sample code to use `content_copy` instead of `assignment`. Before: <img width="369" alt="223876418-2470c4c5-abfc-4511-9762-1fd0b6e05903" src="https://user-images.githubusercontent.com/8867023/228396142-450125ee-d8cf-4ede-8545-5920eb0da99d.png"> After: <img width="408" alt="image" src="https://user-images.githubusercontent.com/8867023/228395959-8531704a-77aa-43af-9dcf-7456bb2ed090.png"> ## Related Issues - Fixes https://github.com/flutter/flutter/issues/122246 ## Tests - No tests needed.
23 lines
996 B
HTML
23 lines
996 B
HTML
{@inject-html}
|
|
<a name="{{id}}"></a>
|
|
<div class="snippet snippet-container anchor-container">
|
|
{{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>
|
|
<div class="copyable-container">
|
|
<button class="copy-button-overlay copy-button" title="Copy to clipboard"
|
|
onclick="copyTextToClipboard(longSnippet{{serial}});">
|
|
<i class="material-icons copy-image">content_copy</i>
|
|
</button>
|
|
<pre id="longSnippet{{serial}}"
|
|
class="language-{{language}}"><code class="language-{{language}}">{{app}}</code></pre>
|
|
</div>
|
|
</div>
|
|
{@end-inject-html} |