You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
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:
Import it
Now in your Dart code, you can use:
Say:
Import what you need
Now in your Dart code, you can use one or more of these imports:
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.
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:
Now in your Dart code, you can use:
Say:
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
The text was updated successfully, but these errors were encountered: