Skip to content

feat: Using Pigeon for the platform communication #43

@rekire

Description

@rekire

Migrated from VeryGoodOpenSource/very_good_flutter_plugin#148

Description

I didn't use it yet to be honest, but I think that using Pigeon is currently the state of the art for writing new plugins.

From 16.0.4:

Currently pigeon supports generating:

  • Kotlin and Java code for Android
  • Swift and Objective-C code for iOS and macOS
  • C++ code for Windows

So some fallback for Linux and Web would be required.

Requirements

  • Understanding how the code generation works for Pigeon and this generator tool

Additional Context

Pigeon is a code generator tool to make communication between Flutter and the host platform type-safe, easier, and faster.

Pigeon removes the necessity to manage strings across multiple platforms and languages. It also improves efficiency over common method channel patterns. Most importantly though, it removes the need to write custom platform channel code, since pigeon generates it for you.

Metadata

Metadata

Assignees

Labels

featureA new feature or requestp2Important issues not at the top of the work listproduct: very_good_flutter_pluginChanges that affect the Very Good Flutter Plugin template.

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions