Platform channel
Flutter apps are hosted in a typical native app, that is, when you run a Flutter app, there is a native iOS or Android app running with UI delegations to Flutter. As you already know, Flutter renders all of the UI by itself, and for this to work, the Flutter native layer has all of the code needed to set up an Android View or iOS UIViewController in which the framework can work.
Some mobile frameworks rely on code generation to make a conversion from some generic top-level language into the native ones, where you almost always write code only in the framework-specific language that later gets converted into native (Kotlin/Java and Swift/Objective-C). This makes it hard for the framework to keep its API as up-to-date as the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access