flutter项目集成需要掌握以下内容

2021-04-01  本文已影响0人  nice_demo

1 怎样集成到现有项目?两种方式aar和源码依赖?

2 flutter 4个工程区别?

3 flutter 和Android怎样通讯?

FlutterEngine flutterEngine= new FlutterEngine(this);

flutterEngine.getNavigationChannel().setInitialRoute("your/route/here");

// Start executing Dart code to pre-warm the FlutterEngine.

flutterEngine.getDartExecutor().executeDartEntrypoint(

        DartExecutor.DartEntrypoint.createDefault()

);

// Cache the FlutterEngine to be used by FlutterActivity or FlutterFragment.

FlutterEngineCache

        .getInstance()

        .put("my_engine_id", flutterEngine);

4 flutter打成apk怎样接入到现有框架?

上一篇下一篇

猜你喜欢

热点阅读