【问题标题】:can we use multiple plugins of flutter from one Repo?我们可以从一个 Repo 中使用多个 Flutter 插件吗?
【发布时间】:2020-06-04 11:31:56
【问题描述】:

我被困在这一点上,我已经为我的新颤振应用程序实现了多个插件。 但我想将所有这些插件放在一个仓库中,并将它们称为单独的插件

我的插件是

  • plugin_custom1
  • custom_plugin2

我的仓库名为 flutter_plugins

如果指向我的仓库的链接与以下类似

https://maja.azure.com/ramraj/flutter_plugins

所有插件文件夹都放在这个repo中

我试图在我的 Pubspec.yaml 中以类似于以下方式指向这些包

plugin_custom1:
    git:
      url: https://maja.azure.com/ramraj/flutter_pluginspath=%2Fplugin_custom1

那么我在获取包时遇到以下错误

(OS Error: The filename, directory name, or volume label syntax is incorrect.

提前致谢

【问题讨论】:

    标签: git flutter dart flutter-plugin


    【解决方案1】:

    我找到了答案

    plugin_custom1:
        git:
          url: https://maja.azure.com/ramraj/flutter_plugins
          path:plugin_custom1
    

    请参考以下 Flutter 文档 https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-26
      • 2019-11-28
      • 2016-05-22
      • 1970-01-01
      相关资源
      最近更新 更多