Loading topic
Future, and that you know the basic structure of a Flutter plugin. You should also be able to read simple Kotlin and Swift. The examples use a MethodChannel to send one request from Dart to native code and receive one response.2 min readFuture and async/await, and build a Flutter app. It also assumes you understand that native Android and iOS code will implement the channel methods that this Dart API calls.2 min readpubspec.yaml entry.2 min readMethodChannel API from the previous chapter, and have a working Flutter and Xcode installation. This chapter implements the iOS half of a battery plugin. The Dart side calls getBatteryLevel on the channel named battery_info.2 min readBatteryInfo plugin’s getBatteryLevel method from the previous chapter.1 min readFuture and async code, and have already created the BatteryInfo Dart API. The tests here do not require an Android device, an iPhone, or the native implementations.1 min readMethodChannel, and read basic Kotlin or Swift. You will learn how to expose a native event source as a Dart Stream.2 min readMethodChannel. You should also know that Android Activity objects represent screens and can be destroyed and recreated during configuration changes, such as screen rotation.1 min readMethodChannel, where Dart and native code agree on channel and method names manually.2 min readMethodChannel, and have basic Kotlin and Swift knowledge. It focuses on package structure and dependency flow rather than native method-channel implementation.2 min read