Code generator for type-safe calls between Flutter and native code
open sourceBSD-3-Clausefree
Pigeon is a code generator that makes communication between a Flutter app and its host platform type-safe, easier and faster. You describe the messages in Dart, and it generates the platform channel code on both sides: Kotlin and Java for Android, Swift and Objective-C for iOS and macOS, C++ for Windows and GObject for Linux. It removes the need to manage strings across languages or write custom platform channel or native interop code.
Problems it solves
- call native Android and iOS code from my Flutter app without stringly-typed channels
- stop hand-writing platform channel code in Flutter
- keep Dart and native message types in sync in a Flutter plugin
Features
- generates Kotlin, Java, Swift, Objective-C, C++ and GObject code
- type-safe messages between Dart and native code
- custom classes, nested types and enums
