DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Flutter Analysis and Practice: Native Capability-Based Plug-In Extension

4 years ago medium.com
Flutter Analysis and Practice: Native Capability-Based Plug-In Extension

Summary: This is a summary of an article originally published by the source. Read the full original article here →

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.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com