← 返回 Skills 市场
daidai8910g

MiniMax Flutter Dev

作者 daidai8910g · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
179
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install minimax-flutter-dev
功能描述
Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platfor...
使用说明 (SKILL.md)

Flutter Development Guide

A practical guide for building cross-platform applications with Flutter 3 and Dart. Focuses on proven patterns, state management, and performance optimization.

Quick Reference

Widget Patterns

Purpose Component
State management (simple) StateProvider + ConsumerWidget
State management (complex) NotifierProvider / Bloc
Async data FutureProvider / AsyncNotifierProvider
Real-time streams StreamProvider
Navigation GoRouter + context.go/push
Responsive layout LayoutBuilder + breakpoints
List display ListView.builder
Complex scrolling CustomScrollView + Slivers
Hooks HookWidget + useState/useEffect
Forms Form + TextFormField + validation

Performance Patterns

Purpose Solution
Prevent rebuilds const constructors
Selective updates ref.watch(provider.select(...))
Isolate repaints RepaintBoundary
Lazy lists ListView.builder
Heavy computation compute() isolate
Image caching cached_network_image

Core Principles

Widget Optimization

  • Use const constructors wherever possible
  • Extract static widgets to separate const classes
  • Use Key for list items (ValueKey, ObjectKey)
  • Prefer ConsumerWidget over StatefulWidget for state

State Management

  • Riverpod for dependency injection and simple state
  • Bloc/Cubit for event-driven workflows and complex logic
  • Never mutate state directly (create new instances)
  • Use select() to minimize rebuilds

Layout

  • 8pt spacing increments (8, 16, 24, 32, 48)
  • Responsive breakpoints: mobile (\x3C650), tablet (650-1100), desktop (>1100)
  • Support all screen sizes with flexible layouts
  • Follow Material 3 / Cupertino design guidelines

Performance

  • Profile with DevTools before optimizing
  • Target \x3C16ms frame time for 60fps
  • Use RepaintBoundary for complex animations
  • Offload heavy work with compute()

Checklist

Widget Best Practices

  • const constructors on all static widgets
  • Proper Key on list items
  • ConsumerWidget for state-dependent widgets
  • No widget building inside build() method
  • Extract reusable widgets to separate files

State Management

  • Immutable state objects
  • select() for granular rebuilds
  • Proper provider scoping
  • Dispose controllers and subscriptions
  • Handle loading/error states

Navigation

  • GoRouter with typed routes
  • Auth guards via redirect
  • Deep linking support
  • State preservation across routes

Performance

  • Profile mode testing (flutter run --profile)
  • \x3C16ms frame rendering time
  • No unnecessary rebuilds (DevTools check)
  • Images cached and resized
  • Heavy computation in isolates

Testing

  • Widget tests for UI components
  • Unit tests for business logic
  • Integration tests for user flows
  • Bloc tests with blocTest()

References

Topic Reference
Widget patterns, const optimization, responsive layout Widget Patterns
Riverpod providers, notifiers, async state Riverpod State Management
Bloc, Cubit, event-driven state Bloc State Management
GoRouter setup, routes, deep linking GoRouter Navigation
Feature-based structure, dependencies Project Structure
Profiling, const optimization, DevTools Performance Optimization
Widget tests, integration tests, mocking Testing Strategies
iOS/Android/Web specific implementations Platform Integration
Implicit/explicit animations, Hero, transitions Animations
Dio, interceptors, error handling, caching Networking
Form validation, FormField, input formatters Forms
i18n, flutter_localizations, intl Localization

Flutter, Dart, Material Design, and Cupertino are trademarks of Google LLC and Apple Inc. respectively. Riverpod, Bloc, and GoRouter are open-source packages by their respective maintainers.

安全使用建议
This skill is an instruction-only Flutter/Dart development guide and appears internally consistent: it asks for nothing sensitive and installs nothing. That said, the skill's source/homepage are unknown and the package includes references to documentation files that are not bundled—so you should: (1) be comfortable with the unknown provenance before trusting it in automated workflows, (2) review the guide content for accuracy and style you want, and (3) if you plan to allow autonomous invocation, be aware the agent may produce code or suggestions based on this guidance (but the skill itself will not install software or access secrets). If you need provenance guarantees, prefer skills with a verifiable homepage or well-known publisher.
功能分析
Type: OpenClaw Skill Name: minimax-flutter-dev Version: 1.0.0 The skill bundle is a documentation-only guide for Flutter development, covering patterns for state management, navigation, and performance optimization. It contains no executable code, shell commands, or instructions that could lead to data exfiltration or unauthorized system access (SKILL.md).
能力评估
Purpose & Capability
The skill name/description describe Flutter development guidance and the SKILL.md contains only developer guidance, checklists, and references that align with that purpose. There are no unrelated environment variables, binaries, or install steps requested.
Instruction Scope
SKILL.md is purely documentation and runtime instructions are limited to guidance (patterns, checklists, references). It does not instruct the agent to read arbitrary host files, access credentials, or transmit data to third-party endpoints. Note: the references point to local Markdown files (references/*.md) that are not included; those are documentation links, not code execution instructions.
Install Mechanism
There is no install specification and no code files. As an instruction-only skill it does not write binaries to disk or download archives — this is the lowest-risk install model.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. Nothing in the SKILL.md attempts to use secrets or unrelated environment state.
Persistence & Privilege
always is false, user-invocable is true, and model invocation is allowed (disable-model-invocation false). Autonomous invocation is the platform default; given the skill has no install or credentials, this is not a substantive risk here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install minimax-flutter-dev
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /minimax-flutter-dev 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Flutter cross-platform development guide. - Covers widget patterns, state management with Riverpod/Bloc, GoRouter navigation, performance optimization, and platform-specific implementations. - Includes best practices checklists for widgets, state, navigation, performance, and testing. - Quick reference tables for common widget and performance patterns. - Provides links to in-depth reference guides on key Flutter topics.
元数据
Slug minimax-flutter-dev
版本 1.0.0
许可证 MIT-0
累计安装 3
当前安装数 3
历史版本数 1
常见问题

MiniMax Flutter Dev 是什么?

Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platfor... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 179 次。

如何安装 MiniMax Flutter Dev?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install minimax-flutter-dev」即可一键安装,无需额外配置。

MiniMax Flutter Dev 是免费的吗?

是的,MiniMax Flutter Dev 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

MiniMax Flutter Dev 支持哪些平台?

MiniMax Flutter Dev 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 MiniMax Flutter Dev?

由 daidai8910g(@daidai8910g)开发并维护,当前版本 v1.0.0。

💬 留言讨论