Without further ado, let’s get straight to the topic of the Hybrid development of Flutter (android direction)

Start in the following order (hybrid, create, integrate, develop)

Hybrid source code integration: local project source code integration. Product integration: The Flutter project is developed separately and released as an AAR package or iOS framework after development. The native project relies on the artifacts that Flutter outputs.

Create a flutter module by running the “flutter create -t module my_flutter” command to create a flutter module

Generate directory:

Gradle = setting.gradle = setting.gradle = setting.gradle = setting.gradle = setting.gradle

(2) In app. Gradle add:

Git must pull the flutter code directly into the same level of directory as the native project.

1. Native jump to Flutter: (1) Native code in flutter

Android jumped from native to black screen of the Flutter module. I read a lot on the web about setting a transparent theme but it didn’t work. Later I saw a way to hide the display and wait until the first frame has been rendered before displaying the Flutter page. One thing to note here is that the Container layout of flutter should be set to InVisible first in the layout. Do not use Gone, because InVisible will not be displayed or rendered. InVisible will not be displayed but will render the interface to occupy the position.

(2) Code in FLUTTER

2. Integrate Flutter_boost :(for details, see github.com/alibaba/flu…