What problem does it solve?
Embedding native platform views into Flutter apps requires coordinating platform-specific code, lifecycle management, and composition choices; this Skill removes ambiguity by guiding developers through Android, iOS, macOS, and web embedding patterns and required platform configuration steps.
Core Features & Use Cases
- Cross-platform implementation guidance: Step-by-step patterns for Android (hybrid composition and texture layer), iOS and macOS (hybrid composition), and web multi-view or full-page embedding.
- Concrete code patterns: Dart integration plus platform-side examples in Kotlin, Swift, and JavaScript for registering view factories, creating native views, and handling creation parameters and message codecs.
- Decision logic and constraints: Guidance for choosing between fidelity and performance on Android, API level 23+ validation, SurfaceView invalidation notes, and limitations on iOS gesture/visual overlays.
- Use Case: Embed a native camera or map control for platform-accurate UI while maintaining Flutter widgets for surrounding UI, or embed Flutter into an existing web page using multi-view mode.
Quick Start
Ask for a complete Android hybrid composition example with Dart and Kotlin code, MainActivity registration, FileProvider and AndroidManifest setup, and a short explanation of when to prefer texture layer instead.