flutter_boost icon indicating copy to clipboard operation
flutter_boost copied to clipboard

问题求助,1.5.4已经不复用flutterView了,那是如何保障单引擎模式的?

Open PingShen opened this issue 7 years ago • 2 comments

PingShen avatar Sep 24 '19 03:09 PingShen

是还在共用FlutterNativeView吗?

PingShen avatar Sep 24 '19 03:09 PingShen

我们的 Activity 继承 BoostFlutterActivity

然后在 onCreate 方法中获取 FlutterBoost 的 engineProvider 方法 返回的 (IFlutterEngineProvider) 提供的 Engine。

实际上是由 BoostEngineProvider 实现了 IFlutterEngineProvider 提供单一 Engine 实例。(只会创建一次)

Vadaski avatar Oct 07 '19 04:10 Vadaski