Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

clarify in the pub install instructions that only 1 of the libraries might be all you need #238

Open
DartBot opened this issue Sep 29, 2014 · 1 comment

Comments

@DartBot
Copy link

DartBot commented Sep 29, 2014

From @sigmundch on July 02, 2014 20:28:13

Take a look at the 'install' tab in: http://pub.dartlang.org/packages/core_elements It lists many many libraries. Users might be tempted to include all those imports in their app, without selecting which ones they believe they need.

It happens that 1 of those 44 libraries is meant for command-line apps, while the other 43 are for client apps. Users have tripped not realizing they included an import they didn't need.

Maybe we can just clarify this in the text. Instead of:

  1. Import it
    Now in your Dart code, you can use:

Say:

  1. Import what you need
    Now in your Dart code, you can use one or more of these imports:

Original issue: http://code.google.com/p/dart/issues/detail?id=19807

@DartBot
Copy link
Author

DartBot commented Sep 29, 2014

From @sigmundch on July 02, 2014 11:33:20

Also - is there a way we could override these instructions in a package?

I know we could create core_elements.dart and that will be the only library listed in the imports, but I wonder if we can have a more tailored message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants