flutter-platform-integration
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Flutter native/platform integration guidance for FE Dev. Use when a task touches platform channels, plugins, permissions, flavors, dart-define config, deep links, push notifications, secure storage, app lifecycle, native iOS/Android files, or platform-specific behavior.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- thienqo/flutter-skillstheir own version, first seen Nov 1, 2026
- thiennc-tesoglobal/flutter-skillstheir own version, first seen Aug 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- thiennc-tesoglobal/flutter-skills★ 21same name
- thienqo/flutter-skills★ 21same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- rules/CLAUDE.mdCLAUDE.md
- acceptance-criteria-authorSkill
- adr-authorSkill
- api-contract-authorSkill
- backend-logging-traceabilitySkill
- ba-design-completenessSkill
- ba-ingestion-pipelineSkill
- ba-iteration-planningSkill
- ba-mode-augmentSkill
- ba-mode-external-sourceSkill
- ba-mode-multi-docSkill
- ba-mode-requirements-folderSkill
- ba-mode-reverse-engineerSkill
- ba-mode-single-docSkill
- ba-post-implementationSkill
- be-framework-coding-standardSkill
- c4-authorSkill
- codebase-inventorySkill
- data-lifecycle-contractsSkill
- design-system-authorSkill
- docker-deploymentSkill
- external-integration-adequacySkill
- fe-framework-coding-standardSkill
- figma-canvas-layoutSkill
- figma-design-handoffSkill
- figma-requirements-extractionSkill
- figma-srs-mappingSkill
- flutter-implementationSkill
- flutter-performanceSkill
- format-boundary-contractsSkill
- git-commitSkill
- incident-debuggingSkill
- intent-archaeologySkill
- kubernetes-deploymentSkill
- local-deploymentSkill
- migration-safetySkill
- observability-readinessSkill
- playwright-authorSkill
- qa-author-by-taskSkill
- qa-author-by-usSkill
- qa-execution-runnerSkill
- react-native-implementationSkill
- react-native-performanceSkill
- react-native-platform-integrationSkill
- release-readinessSkill
- rollback-readinessSkill
- sa-architecture-designSkill
- sa-brownfield-extractSkill
- secrets-config-auditSkill
- security-compliance-checklistSkill
- solution-defaultsSkill
- ssh-remote-operationsSkill
- staging-deploymentSkill
- task-sizingSkill
- <kebab-case-name-matching-folder>Skill
- test-case-authorSkill
- third-party-dependency-evaluationSkill
- ui-test-executionSkill
- ui-ux-page-scopingSkill
- user-story-authorSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
17 rules. About 0 are common, 14 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Use this for Flutter work that crosses the Dart/native boundary: platform channels, plugins, permissions, flavors, app config, deep links, …
- Distinctive: line 28
Check authorization before changing platform capabilities:
- Distinctive: line 30
if the requirement is absent, halt with an OQ instead of silently adding capability.
- Distinctive: line 32
use SRS §3.4.6 keys and the existing config loader.
- Very specific: line 34
keep dev/staging/prod endpoints out of Dart and native source literals.
- Distinctive: line 35
Keep permission UX complete:
- Distinctive: line 36
update iOS usage descriptions and Android permission declarations.
- Distinctive: line 41
keep widgets independent of channel names and native file paths.
- Distinctive: line 42
use typed DTOs for channel payloads and document nullable/error cases.
- Distinctive: line 44
run at least one affected platform build/check when native files, plugins, flavors, or permissions change.
- Very specific: line 45
test deep links, push/open flows, storage migration, channel error handling, or lifecycle paths on the relevant simulator/emulator/device.
- Very specific: line 47
When you cannot build — operator-run build handoff: If your sandbox has no Flutter/Android/Xcode toolchain, a build-config, plugin, …
- Distinctive: line 60
Do not add platform capabilities, permissions, plugins, or native APIs without SRS/architecture coverage.
- Distinctive: line 61
Do not store tokens or secrets in plain local storage.
- Distinctive: line 62
Do not hardcode environment endpoints in Dart, Gradle, Xcode, plist, or manifest files.
- Distinctive: line 63
Do not mark a native/build-config change verified from a static read.
- Distinctive: line 64
Do not let platform-channel errors disappear into generic UI failure.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Flutter Platform Integration
When to use
Use this for Flutter work that crosses the Dart/native boundary: platform channels, plugins, permissions, flavors, app config, deep links, push notifications, background tasks, secure storage, lifecycle hooks, or iOS/Android-specific behavior. Load it alongside flutter-implementation.
Inputs and outputs
- Inputs: SRS/architecture permission and platform requirements, API contracts, env configuration, existing Flutter plugin/channel setup, iOS/Android project files, current flavor/build configuration.
- Outputs: platform changes that are approved by architecture, configured per environment, covered by smoke/build checks, and documented in task notes or deploy reports when QA/DevOps needs them.
Procedure
- Classify the integration:
- package/plugin only;
- MethodChannel/EventChannel/FFI/custom native code;
- flavor/build-config change;
- permission/deep-link/push/background lifecycle change.
- Check authorization before changing platform capabilities:
- new plugins, permissions, background modes, associated domains, push services, and native APIs require architecture/dependency approval;
- if the requirement is absent, halt with an OQ instead of silently adding capability.
- Implement environment-safe config:
- use SRS §3.4.6 keys and the existing config loader;
- pass non-secret values through the established
--dart-define, flavor file, or build-time config path; - keep dev/staging/prod endpoints out of Dart and native source literals.
- Keep permission UX complete:
- update iOS usage descriptions and Android permission declarations;
- provide user-facing rationale/copy where required by the feature;
- handle denied, restricted, unavailable, and recoverable states in UI.
- Isolate platform differences:
- wrap platform calls behind services/repositories;
- keep widgets independent of channel names and native file paths;
- use typed DTOs for channel payloads and document nullable/error cases.
- Verify platform behavior:
- run at least one affected platform build/check when native files, plugins, flavors, or permissions change;
- test deep links, push/open flows, storage migration, channel error handling, or lifecycle paths on the relevant simulator/emulator/device;
- record any platform that could not be checked.
When you cannot build — operator-run build handoff. If your sandbox has no Flutter/Android/Xcode toolchain, a build-config, plugin, SDK-level or native change is unverified until someone else builds it. Do not describe a static read as "compatibility confirmed". Instead:
- Read the failing component's own source before proposing a fix. For a plugin build error, open the plugin's
android/build.gradle/ios/*.podspecin the package cache (~/.pub-cache/hosted/pub.dev/<pkg>-<ver>/) or the pub.dev archive. A plugin that hard-codescompileSdk 34cannot be fixed from the app's Gradle files, and no amount of root-project override will make it so. Cite the file and line in the task notes. - Write the build handoff into the deploy report / task notes, so the operator's build can be checked against it — not just "run
flutter build apk":- exact command, flavor and
--dart-define-from-fileused; - host prerequisites (
sdkmanager "platforms;android-NN", Xcode/CocoaPods version, FVM pin); - release-signing check — the release build type must be signed with the registered key, not the debug fallback. Name how signing engages (env vars or
android/key.properties) and give the verification:apksigner verify --print-certs build/app/outputs/flutter-apk/app-release.apk | grep SHA-1must equal the SHA-1 registered for Google Sign-In / Firebase / Play. A debug-signed release builds and launches fine and then fails every Google sign-in withApiException: 10; - the smoke the operator should run on the installed build (sign-in, the changed flow) and what "pass" looks like.
- exact command, flavor and
- Propose
ready-for-deploywith the verification explicitly marked operator-owed. A failed operator build is a reopen; the second one routes to diagnosis (orchestrator-operating-rules.md§9 Step 7.6), not to another speculative attempt.
Why: a plugin that hard-codes its own
compileSdkcannot be fixed from the app's Gradle files, and guessing from the error message costs an operator build per guess. Separately, a rebuild that silently falls back to debug signing installs and launches normally and then fails every Google sign-in — a handoff that names SDK prerequisites but not the signing check lets that ship.- Read the failing component's own source before proposing a fix. For a plugin build error, open the plugin's
Hard rules
- Do not add platform capabilities, permissions, plugins, or native APIs without SRS/architecture coverage.
- Do not store tokens or secrets in plain local storage.
- Do not hardcode environment endpoints in Dart, Gradle, Xcode, plist, or manifest files.
- Do not mark a native/build-config change verified from a static read. If you could not build it, say so and hand off the build with the checks in Procedure step 7.
- Do not let platform-channel errors disappear into generic UI failure; map them to user-visible or logged failure states per architecture.
References
../flutter-implementation/SKILL.md- baseline Flutter implementation discipline.../flutter-performance/SKILL.md- performance review for channel-heavy or platform-heavy changes.../third-party-dependency-evaluation/SKILL.md- dependency approval for plugins.../local-deployment/SKILL.md- deploy/env evidence consumed by QA.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

