use*_*269 3 function dart flutter
我想创建两个flutter应用程序,它们通过另一个flutter包(核心包)共享很多功能。
我想使用 Android Studio 在同一个窗口中打开两个项目和核心包。
你可以有这样的结构:
/core - a pure dart code, with dependencies, etc
/app1 - in this pubspec.yaml, just put: as dependencie:
core:
path: ../core
/app2
core:
path: ../core
Run Code Online (Sandbox Code Playgroud)
这样,您将核心项目引用为 app1 和 app2 依赖项。
以这个项目为例:https : //github.com/roughike/inKino。它core在 flutter app 和 web app 上共享项目。
| 归档时间: |
|
| 查看次数: |
1069 次 |
| 最近记录: |