flutter-building-plugins

Guide Flutter plugin development bridging Dart with native Android, iOS, macOS, and Windows code.

2.8k|166|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/flutter/skills --skill flutter-building-plugins-flutter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-building-plugins
Source: https://github.com/flutter/skills/tree/main/skills/flutter-building-plugins
Command: npx skills add https://github.com/flutter/skills --skill flutter-building-plugins-flutter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a comprehensive guide and workflows for developing Flutter plugins that integrate native platform code, enabling richer app functionality.

Core Features & Use Cases

  • Plugin Creation: Guides users through creating new standard or FFI plugins using flutter create.
  • Platform Implementation: Details workflows for implementing Android (v2 embedding) and Windows native code.
  • Extending Existing Plugins: Explains how to add new platforms to already existing plugins.
  • Use Case: You need to create a Flutter plugin that accesses device-specific hardware features not available through standard Dart APIs. This Skill will guide you through setting up the project, writing the native Android and iOS code, and connecting it to your Dart code.

Quick Start

Use the flutter-building-plugins skill to create a new standard Flutter plugin with Android and iOS support.

Frequently Asked Questions about flutter-building-plugins

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a Flutter plugin with native code for iOS and Android?

To build a Flutter plugin with native iOS and Android code, use `flutter create` to generate the plugin project structure, then implement platform-specific code using Method Channels to bridge Dart with native functionalities.

What is the difference between Method Channels and Dart FFI in Flutter plugin development?

Method Channels facilitate asynchronous messaging between Dart and native platform code for iOS, Android, and macOS, while Dart FFI enables direct synchronous invocation of native C APIs, particularly for Windows native interop.

How do I add Windows platform support to an existing Flutter plugin?

To add Windows support to an existing Flutter plugin, retrofit the plugin by implementing Windows native code and utilizing Dart FFI to connect the C-based Windows APIs with your existing Dart codebase.

Do I need to understand native development environments to create Flutter plugins?

Yes, creating Flutter plugins requires an understanding of Flutter's plugin architecture and native development environments for target platforms like Android, iOS, macOS, and Windows to implement the platform-specific code.

How do I implement Android v2 embedding when creating a Flutter plugin?

When creating a Flutter plugin, implement the Android v2 embedding by following the platform implementation workflows to write native Android code that properly integrates with the modern Flutter engine lifecycle.