Allow users to create samples using flutter create. (#23584)
This adds flutter create --sample which allows users to execute a command which will create a working sample app from samples embedded in the API docs. The command looks something like this: flutter create --sample=chip.DeletableChipAttributes.onDeleted mysample
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
</div>
|
||||
<div class="snippet" id="longSnippet" hidden>
|
||||
<div class="snippet-description">To create a sample project with this code snippet, run:<br/>
|
||||
<span class="snippet-create-command">flutter create --snippet={{id}} mysample</span>
|
||||
<span class="snippet-create-command">flutter create --sample={{id}} mysample</span>
|
||||
</div>
|
||||
<div class="copyable-container">
|
||||
<button class="copy-button-overlay copy-button" title="Copy to clipboard"
|
||||
|
||||
Reference in New Issue
Block a user