Flutter 颤振添加到应用程序中,我们可以将多个颤振模块添加到本机项目中吗?

Flutter 颤振添加到应用程序中,我们可以将多个颤振模块添加到本机项目中吗?,flutter,Flutter,我有一个关于颤振添加到应用程序当前限制的问题 请参阅本文件 为了这个声明 不支持将多个颤振库打包到应用程序中 我是否正确理解,我们只能创建一个颤振模块项目并将其添加到我们的android或ios项目中 如果是,那么有什么解决办法吗?您可以通过主颤振模块内的机具子模块来分离模块,每个子模块将由颤振引擎控制,这意味着您将有多个颤振引擎,因此每个模块中的状态将保持并与其他模块分离 你可以在这里参考我的演示,部分屏幕和全屏是分开的 As of Flutter v1.12, add-to-app is s

我有一个关于颤振添加到应用程序当前限制的问题

请参阅本文件

为了这个声明

不支持将多个颤振库打包到应用程序中

我是否正确理解,我们只能创建一个颤振模块项目并将其添加到我们的android或ios项目中


如果是,那么有什么解决办法吗?

您可以通过主颤振模块内的机具子模块来分离模块,每个子模块将由颤振引擎控制,这意味着您将有多个颤振引擎,因此每个模块中的状态将保持并与其他模块分离

你可以在这里参考我的演示,部分屏幕和全屏是分开的

As of Flutter v1.12, add-to-app is supported for the basic scenario of integrating one full-screen Flutter instance at a time per app. It currently has the following limitations:

- Running multiple Flutter instances or running in partial screen views may have undefined behavior.
- Using Flutter in background mode is still a WIP.
- Packing multiple Flutter libraries into an application isn’t supported.
- Plugins used in add-to-app on Android should migrate to the [new Android plugin APIs][], based on FlutterPlugin.
Plugins that don’t support FlutterPlugin may have unexpected behaviors if they make assumptions that are untenable in add-to-app (such as assuming that a Flutter Activity is always present).

- As of v1.17, the Flutter module only supports AndroidX applications on