From c358ddbaf2f4032f8951bbceeada46e68249813c Mon Sep 17 00:00:00 2001 From: Seth Ladd Date: Fri, 7 Apr 2017 17:51:34 -0700 Subject: [PATCH] example of a package dependency asset (#9295) --- .../flutter_tools/templates/create/pubspec.yaml.tmpl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/flutter_tools/templates/create/pubspec.yaml.tmpl b/packages/flutter_tools/templates/create/pubspec.yaml.tmpl index 6fac9b4ea0c..d3c39f307f9 100644 --- a/packages/flutter_tools/templates/create/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/create/pubspec.yaml.tmpl @@ -31,6 +31,17 @@ flutter: # - images/a_dot_burr.jpeg # - images/a_dot_ham.jpeg + # To add assets from package dependencies, first ensure the asset + # is in the lib/ directory of the dependency. Then, + # refer to the asset with a path prefixed with + # `packages/PACKAGE_NAME/`. Note: the `lib/` is implied, do not + # include `lib/` in the asset path. + # + # Here is an example: + # + # assets: + # - packages/PACKAGE_NAME/path/to/asset + # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a