flutter-interoperating-with-native-apis

Access device-specific native APIs on Android, iOS, and web from Flutter code.

flutter ↓ 8.4k
Claude Code
View source ↗

What it does

  • Core Concepts & Terminology
  • Binding to Native C/C++ Code (FFI)
  • Implementing Platform Channels & Pigeon
  • Hosting Native Platform Views
  • Integrating Web Content & Wasm
  • FFI (Foreign Function Interface): The dart:ffi library used to bind Dart directly to native C/C++ APIs.
  • Pigeon: A code-generation tool that creates type-safe Platform Channels.

Requirements & configuration

  • Use Platform Channels when you need to interact with platform-specific APIs (e.g., Battery, Bluetooth, OS-level services) using the platform's native language.
  • Cross-Origin-Embedder-Policy: credentialless (or require-corp)
  • Use this workflow when you need to call Kotlin/Swift APIs from Dart.

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

Access device-specific native APIs on Android, iOS, and web from Flutter code.

Source

Repository: https://github.com/flutter/skills

flutter-interoperating-with-native-apis FAQ

What does the flutter-interoperating-with-native-apis skill do?

Interoperates with native platform APIs on Android, iOS, and the web. Use when accessing device-specific features not available in Dart or calling existing native code. Core Concepts & Terminology Binding to Native C/C++ Code (FFI)

What does flutter-interoperating-with-native-apis require?

Use Platform Channels when you need to interact with platform-specific APIs (e.g., Battery, Bluetooth, OS-level services) using the platform's native language. Cross-Origin-Embedder-Policy: credentialless (or require-corp) Use this workflow when you need to call Kotlin/Swift APIs from Dart.

How do I install flutter-interoperating-with-native-apis?

Run: npx -y skills add https://github.com/flutter/skills --skill flutter-interoperating-with-native-apis --agent claude-code — the source lives at github.com/flutter/skills.

Maintain flutter-interoperating-with-native-apis?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

flutter-interoperating-with-native-apis on getagentictools
[![flutter-interoperating-with-native-apis on getagentictools](https://getagentictools.com/badge/skills/flutter-skills-flutter-interoperating-with-native-apis.svg)](https://getagentictools.com/skills/flutter-skills-flutter-interoperating-with-native-apis?ref=badge)
npx agentictools info skills/flutter-skills-flutter-interoperating-with-native-apis

The second line is the CLI lookup for this page — handy in READMEs and docs.