Writing custom platform-specific code

Platform integration

Platform-specific code

Architectural overview: platform channels

Platform channel data types support and codecs

Example: Calling platform-specific code using platform channels

Step 1: Create a new app project
Step 2: Create the Flutter platform client
Step 3: Add an Android platform-specific implementation
Step 4: Add an iOS platform-specific implementation
Step 5: Add a Windows platform-specific implementation
Step 6: Add a Linux platform-specific implementation

Typesafe platform channels using Pigeon

Pigeon example

Separate platform-specific code from UI code

Publish platform-specific code as a package

Custom channels and codecs

Channels and platform threading