插件是关于使 Flutter 可以使用本机功能。
模块是将 Flutter 与现有的原生应用程序集成。
也许您真正想要的是一个可重用的Pub 包,您可以将其发布到 pub.dartlang.org(插件也是 Pub 包,只是一个特殊的包,它额外利用了对本机平台的访问权限)
也可以看看
“库包”是 Pub 包,与通常不发布到 pub.dartlang.org 的普通 Dart“应用程序包”相反。
A pure Dart Pub package (library package) that does not depend on dart:html
, dart:ui
(Flutter) and is not a Flutter plugin, can be used on any platform (server, command line, Flutter, browser).
If your package has one of the named dependencies, it is limited to a specific platform.
pub.dartlang.org shows labels to categorize published packages accordingly (FLUTTER
,WEB
,OTHER
)