Do you ever want to
pub build into another branch? This is your ticket.
$ pub global activate peanut
$ cd ~/my_dart_proj/ $ peanut
This will build your project into a temporary directory, and then it will update the local
gh-pages branch with its contents.
The easiest way to push your
gh-pages branch to github (without switching from your working branch) is:
$ git push origin --set-upstream gh-pages
To create (or update) your local
gh-pages branch to match what's on the server.
$ git update-ref refs/heads/gh-pages origin/gh-pages
This is also useful if you want to undo a
$ peanut --help
-d, --directory (defaults to "web") -b, --branch (defaults to "gh-pages") -m, --message (defaults to "Built <directory>") -h, --help
pub buildto run in debug mode.
runInShellto make things work on Windows.
Add this to your package's pubspec.yaml file:
dependencies: peanut: "^1.0.0"
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:
|1.0.0||Oct 20, 2017|
|0.1.0||Oct 26, 2016|
|0.0.2||Jan 15, 2016|
|0.0.1+2||Jul 29, 2015|
|0.0.1+1||Apr 12, 2015|
|0.0.1||Apr 8, 2015|
We analyzed this package, and provided a score, details, and suggestions below.
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
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.
Maintain an example.
None of the files in your
example/directory matches a known example patterns. Common file name patterns include:
example.dartor you could also use