Loading topic
Intermediate · Mid: 12 chapters · 30 min read. States assumed prerequisites
Start readingStatelessWidget, and StatefulWidget. You should also understand the basic idea of a MethodChannel and be able to read simple Kotlin or Swift. You do not need to know the platform-view APIs yet.MethodChannel. A platform view is a native Android or iOS view that Flutter places inside its widget tree. The connection depends on one shared identifier called a **viMethodChannel at a basic level. You should also be able to run a Flutter app on an Android emulator or device.MethodChannel. You should also be able to run a Flutter app on an iOS simulator or device.MethodChannel. You should also know that a platform view is a native Android or iOS view displayed inside Flutter's widget tree.MethodChannel. A platform view is already registered on both native platforms. The goal here is to send commands to one particular native view instance after Flutter dMethodChannel, and that you can read simple Dart and native platform code. This chapter focuses on the boundary between Flutter gesture recognizers and an embedded native view.MethodChannel use, and simple Kotlin and Swift. A platform view has two lifecycles to coordinate: