From f9c6f30576b3196bcce622f8c5ff81a5921c7694 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Tue, 30 Oct 2018 16:01:14 -0700 Subject: [PATCH] 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 --- .../config/skeletons/application.html | 2 +- .../lib/src/commands/create.dart | 117 +++++++++++++---- packages/flutter_tools/lib/src/version.dart | 2 +- .../test/commands/create_test.dart | 121 +++++++++++++++++- 4 files changed, 214 insertions(+), 28 deletions(-) diff --git a/dev/snippets/config/skeletons/application.html b/dev/snippets/config/skeletons/application.html index bbbed4f37c..479a8c09c2 100644 --- a/dev/snippets/config/skeletons/application.html +++ b/dev/snippets/config/skeletons/application.html @@ -20,7 +20,7 @@