Usage of local dart library -


i have created local libraries in dart lib directory. these libraries visible in dart packages each newly created folder in web directory. however, when attempt access them using dart's package nomenclature eg package:reg/name.dart, system generates error.

i think missing something.

i have read http://pub.dartlang.org/doc/package-layout.html did not me either.

you need ensure name you're using package matches in pubspec.yaml.

eg. if in pubspec.yaml havename: my_app , file @ lib\my_library.dart need use import 'package:my_app/my_library.dart';.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -