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
Post a Comment