flutter-implementation
Skill9 starsChanged 6 months agoApache-2.0View on GitHub
Flutter implementation guidance for FE Dev. Use after fe-framework-coding-standard selects Flutter, when building or reviewing widgets, pages, state, navigation, theming, accessibility, selectors, and ordinary Dart/widget tests without changing native platform channels.
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-performanceSkill
- flutter-platform-integrationSkill
- 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
19 rules. About 0 are common, 11 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Use this after fe-framework-coding-standard selects Flutter for the task surface.
- Distinctive: line 38
Use Dart and state safely:
- Distinctive: line 39
keep null safety and strong types.
- Very specific: line 41
avoid dynamic except at explicit untyped boundaries.
- Very specific: line 44
use constraints, LayoutBuilder, adaptive widgets, and scroll behavior.
- Distinctive: line 46
keep fixed dimensions limited to controls whose format requires them.
- Distinctive: line 47
Add accessibility and instrumentation:
- Very specific: line 48
add Key values and Semantics(identifier: ...) only from docs/instrumentation-contract.md.
- Distinctive: line 49
use semantic labels, hints, roles, and focus order when visible UI is insufficient.
- Distinctive: line 50
keep minimum touch targets at least 48 x 48 logical pixels unless the project standard is stricter.
- Distinctive: line 52
update widget tests for rendering, validation, and state transitions.
- Very specific: line 53
update unit tests for blocs/notifiers/repositories when logic changes.
- Very specific: line 54
update Patrol/Maestro integration tests only when the task changes a critical flow, following ui-test-execution.
- Very specific: line 55
run dart format, flutter analyze, relevant unit/widget tests, and platform build checks when touched files require it.
- Distinctive: line 59
Do not introduce a second state architecture, router, UI kit, or test framework without an approved ADR.
- Distinctive: line 60
Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.
- Very specific: line 61
Do not put business rules, network calls, or long-lived subscriptions directly inside build().
- Distinctive: line 62
Do not create controllers, streams, or animation controllers without disposal.
- Distinctive: line 63
Do not close the task while any required manifest row is missing from source or tests.
≈ “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 Implementation
When to use
Use this after fe-framework-coding-standard selects Flutter for the task surface. This is the default Flutter implementation skill for widgets, pages, state, theming, navigation, accessibility, instrumentation, and normal unit/widget test work.
For platform channels, permissions, flavors, deep links, app lifecycle, native files, or secure storage, also load flutter-platform-integration. For rebuild, list, image, animation, startup, memory, or jank work, also load flutter-performance.
Inputs and outputs
- Inputs: task file, SRS
Frontend-Framework:and §3.4.5 source layout, §3.4.6 frontend env keys, design handoff, Design Element Manifest, visual spec, instrumentation contract, API contracts, current Flutter source tree. - Outputs: Flutter code that fits the existing app architecture, implements every manifest row, uses declared runtime config, exposes stable keys/semantics, preserves accessibility, and updates relevant unit/widget tests.
Procedure
- Identify the app architecture:
- feature/module layout under
lib/; - state approach: Bloc/Cubit, Riverpod, Provider, ValueNotifier,
setState, or project wrapper; - navigation: Navigator, GoRouter, AutoRoute, or project wrapper;
- theming:
ThemeData, extensions, generated tokens, shared widgets.
- feature/module layout under
- Keep boundaries clean:
- pages/screens own navigation, async state, permissions, and orchestration;
- widgets render manifest sections and emit typed callbacks;
- repositories/services stay outside widgets when the project has a data layer.
- Implement from the Design Element Manifest:
- render every field, label, placeholder, action, state copy, list/card item, and dialog/snackbar row;
- preserve Figma order unless product behavior requires a documented deviation;
- include initial, loading, data, empty, validation error, recoverable error, denied permission, disabled, and refreshing states where applicable.
- Use Dart and state safely:
- keep null safety and strong types;
- convert external data into typed models quickly;
- avoid
dynamicexcept at explicit untyped boundaries; - dispose controllers, focus nodes, animation controllers, streams, and subscriptions.
- Build adaptive mobile UI:
- use constraints,
LayoutBuilder, adaptive widgets, and scroll behavior; - respect safe areas, keyboard insets, text scaling, platform navigation, and orientation;
- keep fixed dimensions limited to controls whose format requires them.
- use constraints,
- Add accessibility and instrumentation:
- add
Keyvalues andSemantics(identifier: ...)only fromdocs/instrumentation-contract.md; - use semantic labels, hints, roles, and focus order when visible UI is insufficient;
- keep minimum touch targets at least 48 x 48 logical pixels unless the project standard is stricter.
- add
- Test and verify:
- update widget tests for rendering, validation, and state transitions;
- update unit tests for blocs/notifiers/repositories when logic changes;
- update Patrol/Maestro integration tests only when the task changes a critical flow, following
ui-test-execution; - run
dart format,flutter analyze, relevant unit/widget tests, and platform build checks when touched files require it.
Hard rules
- Do not introduce a second state architecture, router, UI kit, or test framework without an approved ADR.
- Do not hardcode API URLs, environment names, platform domains, secrets, or selector IDs.
- Do not put business rules, network calls, or long-lived subscriptions directly inside
build(). - Do not create controllers, streams, or animation controllers without disposal.
- Do not close the task while any required manifest row is missing from source or tests.
References
../fe-framework-coding-standard/SKILL.md- framework router and universal FE rules.../flutter-performance/SKILL.md- Flutter rebuild, list, image, animation, and startup performance.../flutter-platform-integration/SKILL.md- platform channels, permissions, flavors, storage, and native files.../ui-test-execution/SKILL.md- Patrol/Maestro selector, fixture, determinism, and reporting rules.
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.

