Category: android, ios

When integrating Flutter, Xianyu uses Flutter plug-ins as bridges to acquire various native capabilities, such as obtaining device information and using the basic network library. The Flutter engine allows plug-ins in this article to create platform channels for communication.

Create the plugins folder in the flutter_app root directory of the Flutter app project and move the flutter_plugin_batterylevel plug-in to plugins, as shown in Figure 2-6.

A native project fails to call the Flutter app after the Flutter app is started.

As the UI framework of the application layer, Flutter depends on native and needs to call native APIs in many scenarios.

Related Articles