Clones template snippets into project. Insert <variable> anywhere into your template and
startr will find and prompt you for replacements. It warns you if there are any existing files that match the current directory path.
Install dartlang, then:
$ pub global activate startr
See console-simple.dart for an example template repository (Copied courtesy of: https://github.com/google/stagehand)
$ startr clone git firstname.lastname@example.org:damondouglas/console-simple.dart.git
see list of community startrs here: https://github.com/damondouglas/startr.dart/wiki
Clones template snippets into project. Usage: startr <command> [arguments] Global options: -h, --help Print this usage information. Available commands: clone Clones template into project. help Display help information for startr. Run "startr help <command>" for more information about a command.
Usage: startr clone <subcommand> [arguments] -h, --help Print this usage information. Available subcommands: git Clones template from git repository. path Clones template from local directory path. Run "startr help" to see global options.
startr clone path <directory> Clones template from local directory path. Usage: startr clone path <directory> -h, --help Print this usage information. Run "startr help" to see global options.
startr clone git <uri> Clones template from git repository. Usage: startr clone git <uri> -h, --help Print this usage information. Run "startr help" to see global options.
Add this to your package's pubspec.yaml file:
dependencies: startr: "^0.2.3"
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.2.3||Feb 8, 2017|
|0.2.2||Feb 8, 2017|
|0.2.0||Feb 7, 2017|
|0.1.1||Apr 30, 2016|
|0.1.0||Apr 28, 2016|
|0.0.2||Apr 21, 2016|
|0.0.1||Apr 21, 2016||failed|
We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: Flutter, other
Fix analysis and formatting issues.
Analysis or formatting checks reported 14 errors 1 hint.
Strong-mode analysis of
lib/prompt.dartfailed with the following error:
line: 25 col: 24
A value of type 'Iterable<String>' can't be assigned to a variable of type 'List'.
Strong-mode analysis of
lib/src/clone.dartfailed with the following error:
line: 49 col: 51
The argument type 'Iterable<String>' can't be assigned to the parameter type 'List'.
Similar analysis of the following files failed:
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use
|Dart SDK||>=1.0.0 <2.0.0|