Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

flutter-patternsFlutter 模式

Agent Skill

flutter-patterns 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,225

周安装

90

GitHub Stars

42

下载量

698
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:flutter-patterns(Flutter 模式)
来源仓库:https://github.com/cleydson/flutter-claude-code
仓库路径:skills/flutter-patterns
安装命令:
npx skills add https://github.com/cleydson/flutter-claude-code --skill flutter-patterns
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/cleydson/flutter-claude-code --skill flutter-patterns

简介

flutter-patterns 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Flutter Patterns

A comprehensive collection of battle-tested Flutter patterns and best practices for building production-quality applications.

Overview

This skill provides quick-reference patterns for:

  • Widget Patterns: Common UI components (cards, lists, forms, dialogs, navigation)
  • Testing Patterns: Unit, widget, and integration testing approaches
  • Performance Patterns: Optimization techniques and performance checklists
  • Security Patterns: Security best practices and vulnerability prevention
  • Animation Patterns: Common animation implementations and transitions

When to Use This Skill

Use this skill when you need:

  • Quick reference for standard Flutter UI patterns
  • Testing strategy guidance and examples
  • Performance optimization checklists
  • Security vulnerability prevention
  • Animation implementation examples
  • Best practices for common Flutter development scenarios

Pattern Categories

Widget Patterns

See patterns/flutter-widget-patterns.md for:

  • Card patterns (basic, image, custom)
  • List patterns (lazy loading, sectioned)
  • Form patterns with validation
  • Dialog and bottom sheet patterns
  • Loading and empty states
  • Navigation patterns
  • Material 3 widgets (SearchAnchor, SegmentedButton, NavigationBar, DropdownMenu)
  • DecoratedSliver patterns
  • Responsive layouts (with Material 3 WindowSizeClass breakpoints)

Testing Patterns

See patterns/flutter-testing-patterns.md for:

  • Unit test structure and best practices
  • Widget testing approaches
  • Integration test patterns
  • Mock and stub strategies (Mockito and Mocktail)
  • BLoC testing with bloc_test
  • Riverpod testing patterns
  • Patrol testing for native interactions
  • Golden test patterns
  • Test organization and naming conventions
  • Coverage best practices

Performance Patterns

See patterns/flutter-performance-checklist.md for:

  • Impeller rendering engine considerations
  • Build method optimization
  • Widget rebuilding minimization
  • List and grid performance
  • Image loading optimization (WebP/AVIF, caching)
  • Memory leak prevention
  • Isolate.run() for background computation
  • Rendering performance tips
  • Shader compilation (resolved by Impeller)

Security Patterns

See patterns/flutter-security-patterns.md for:

  • Input validation and sanitization
  • Secure storage practices (flutter_secure_storage)
  • API security and certificate pinning (Dio 5.x)
  • Authentication and authorization patterns
  • Biometric authentication (Face ID, fingerprint)
  • iOS Privacy Manifests (required since iOS 17)
  • Data encryption approaches
  • Common vulnerability prevention (XSS, injection, etc.)

Animation Patterns

See patterns/flutter-animation-patterns.md for:

  • Basic animation controllers
  • Tween animations
  • Hero animations
  • Page transitions
  • Implicit animations
  • Material 3 motion patterns (shared axis, container transform)
  • Impeller animation performance notes
  • Custom animation patterns

Usage Examples

Example 1: Need a card UI pattern

User: "I need to create a product card with an image and details"
→ Reference Widget Patterns for image card implementation

Example 2: Writing tests

User: "How should I structure my widget tests?"
→ Reference Testing Patterns for widget test examples

Example 3: Performance issues

User: "My list is laggy when scrolling"
→ Reference Performance Patterns for list optimization techniques

Example 4: Security concern

User: "How do I securely store user credentials?"
→ Reference Security Patterns for secure storage approaches

Example 5: Adding animations

User: "I want to animate a page transition"
→ Reference Animation Patterns for page transition examples

Pattern Quality

All patterns in this skill are:

  • ✓ Production-tested and battle-proven
  • ✓ Following Flutter best practices
  • ✓ Performance-optimized
  • ✓ Security-conscious
  • ✓ Well-documented with code examples

Quick Access

For fast pattern lookup, each category file is self-contained with:

  • Complete, runnable code examples
  • Explanation of when to use each pattern
  • Common pitfalls and how to avoid them
  • Performance and security considerations

Pro tip: Combine patterns from different categories for comprehensive solutions. For example, use Widget Patterns + Performance Patterns + Security Patterns together when building production features.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.18%
按下载量换算190

Antigravity

25.76%
按下载量换算180

OpenCode

20.69%
按下载量换算144

Gemini CLI

11.86%
按下载量换算83

windsurf

7.84%
按下载量换算55

Cursor

3.65%
按下载量换算25

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills