From a4d30c16075f81deb2a523bc747c615ee0eebe7c Mon Sep 17 00:00:00 2001 From: Jonas Finnemann Jensen Date: Tue, 17 Mar 2020 20:31:52 +0100 Subject: [PATCH] Add a comment for path dependencies in plugin example template (#50978) --- packages/flutter_tools/templates/app/pubspec.yaml.tmpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl index faa63962481..922184cb1a1 100644 --- a/packages/flutter_tools/templates/app/pubspec.yaml.tmpl +++ b/packages/flutter_tools/templates/app/pubspec.yaml.tmpl @@ -27,6 +27,11 @@ dependencies: {{#withPluginHook}} {{pluginProjectName}}: + # When depending on this package from a real application you should use: + # {{pluginProjectName}}: ^x.y.z + # See https://dart.dev/tools/pub/dependencies#version-constraints + # The example app is bundled with the plugin so we use a path dependency on + # the parent directory to use the current plugin's version. path: ../ {{/withPluginHook}}