This file will be the only one that an external user needs to import and will make available all the package functionalities. One general convention is to have a single file that everyone can import to use your package. Or it could be a massive cross-platform plugin that solves an impelling problem inside the community. It could just as well be a simple UI package that solves a small problem for you that you would like to openly share with everyone. It does not need to be a revolutionary package with hundreds of functionalities. You can develop whatever package you want or like. Here comes the fun part, developing your Flutter package. Pubspec.yaml name : my_awesome_package description : the awesome package I created by following this tutorial author : Sandro Maglione homepage : Develop your package The author field should be populated with your name and email address, while the homepage field should contain a link to your pub.dev package (which we still do not have since we did not yet publish the package) or a link to the Github project or your website. In order to display your information as the author of the package, you need to change the author and homepage fields generated inside the pubspec.yaml file. All the people that will be using your package will just need to import the my_awesome_package.dart generated inside the lib folder. That is our starting point from which to develop the package.
0 Comments
Leave a Reply. |