← Back to Skills Marketplace
smasherlxd

Flutter Dev

by smasherlxd · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
401
Downloads
0
Stars
11
Active Installs
1
Versions
Install in OpenClaw
/install flutter-dev
Description
Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platfor...
README (SKILL.md)

\r \r

Flutter Development Guide\r

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

Quick Reference\r

\r

Widget Patterns\r

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

Performance Patterns\r

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

Core Principles\r

\r

Widget Optimization\r

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

State Management\r

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

Layout\r

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

Performance\r

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

Checklist\r

\r

Widget Best Practices\r

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

State Management\r

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

Navigation\r

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

Performance\r

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

Testing\r

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

References\r

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

Usage Guidance
This skill is documentation and example code only — it does not require secrets or perform installs. It's safe to read and use as a reference, but before copying examples into production: (1) review networking examples (they use placeholder base URLs like api.example.com) and replace with your real endpoints; (2) avoid leaving verbose logging (the LoggingInterceptor prints request bodies) in production since it can expose sensitive data; and (3) verify package versions and licenses in your own project. If you need the skill to run code or access systems, ask for a version that declares explicit installs and required environment variables so you can review them.
Capability Analysis
Type: OpenClaw Skill Name: flutter-dev Version: 1.0.0 The 'flutter-dev' skill bundle is a comprehensive and legitimate reference guide for Flutter development. It provides standard best practices and code snippets for state management (Riverpod, Bloc), navigation (GoRouter), networking (Dio), and platform-specific integrations. Analysis of the markdown files (SKILL.md and the references directory) revealed no evidence of malicious intent, data exfiltration, or prompt injection; all examples use standard libraries and placeholder URLs (e.g., api.example.com).
Capability Assessment
Purpose & Capability
Name/description (Flutter dev guide) match the contents: reference files and SKILL.md provide widget patterns, state management, navigation, performance, testing, and platform notes. No unrelated credentials, binaries, or installs are requested.
Instruction Scope
SKILL.md and the reference files are purely documentation and code examples. They do not instruct the agent to read system files, access environment variables, contact external endpoints beyond illustrative placeholders (e.g., https://api.example.com), or exfiltrate data.
Install Mechanism
No install spec and no code files that would be executed. Being instruction-only means nothing is downloaded or written to disk during install.
Credentials
No required environment variables, credentials, or config paths are declared or referenced. Code samples use placeholder endpoints and typical package names appropriate for Flutter networking/state management.
Persistence & Privilege
Skill is not always-enabled and does not request persistent agent privileges or modify other skills. Autonomous invocation defaults are unchanged and are not combined with any broad access in this skill.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install flutter-dev
  3. After installation, invoke the skill by name or use /flutter-dev
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the flutter-dev skill. - Provides a comprehensive cross-platform Flutter development guide. - Covers widget patterns, state management with Riverpod/Bloc, GoRouter navigation, and performance optimization. - Includes best practices for const optimization, responsive layouts, and DevTools profiling. - Offers checklists and quick references for widgets, state, navigation, performance, and testing. - References official documentation and community best practices for Flutter, Riverpod, and Bloc.
Metadata
Slug flutter-dev
Version 1.0.0
License MIT-0
All-time Installs 11
Active Installs 11
Total Versions 1
Frequently Asked Questions

What is Flutter Dev?

Flutter cross-platform development guide covering widget patterns, Riverpod/Bloc state management, GoRouter navigation, performance optimization, and platfor... It is an AI Agent Skill for Claude Code / OpenClaw, with 401 downloads so far.

How do I install Flutter Dev?

Run "/install flutter-dev" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Flutter Dev free?

Yes, Flutter Dev is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Flutter Dev support?

Flutter Dev is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Flutter Dev?

It is built and maintained by smasherlxd (@smasherlxd); the current version is v1.0.0.

💬 Comments