Flutter 里面有2种库一样的东西, Package -creating a pure Dart component. like a new Widget. 这种是纯Dart,相当于你自己写的组件. Plugin- exposing an android or ios API for developers. 这种为了调用Android/IOS的API写的插件. 你可以在这里搜索你想要的插件/组件(吐槽经常进不去). 比如我们搜索cupertino_icons(为啥搜索这个.因为默认项目里面默…
我们自己做了插件包,当然也想发布到pub.dartlang.org上去.怎么发布呢?先看看官方的说明(https://flutter.io/developing-packages/). Publishing packages Once you have implemented a package, you can publish it on Pub, so that other developers can easily use it. Prior to publishing, make sur…