Flutter Module

Integrate a Flutter module into your iOS and Android project

If we have a native project both on iOS and Android platform, now we need implement some new feature to this project, We can write flutter module to implement it and add to native project, so we don’t need implement the new feature with separate iOS and Android native code.

For Flutter module

For iOS

Flutter can be incrementally added into your existing iOS application as embedded frameworks, we embed with CocoaPods and the Flutter SDK.

  1. Add lines of code in Podfile

2. $ pod install
3. Make a flutter view entrance with pre-warmFlutterEngine for your application

For Android

Flutter can be embedded into your existing Android application piecemeal, as a source code Gradle subproject or as AARs.

  1. Add couple lines of code to build.gradle

2. Add lines of code in setting.gradle

3. Add activity for flutter view in AndroidManifest.xml

4. Make a flutter view entrance with pre-warmFlutterEngine for your application