Flutter development

From travisjneuman/.claude · View interactive version

Flutter development is an AI agent skill from the GitHub repository travisjneuman/.claude. Cross-platform development with Flutter and Dart for iOS, Android, Web, Desktop, and embedded. Use when building Flutter apps, implementing Material/Cupertino design, or optimizing Dart code.

How to use this skill

Skill file

Flutter Development

Build beautiful, natively compiled applications for mobile, web, desktop, and embedded from a single codebase.

Supported Platforms

| Platform | Status | Notes |

| -------- | ------ | ----------------------- |

| iOS | Stable | Full native performance |

| Android | Stable | Full native performance |

| Web | Stable | PWA support |

| macOS | Stable | Native desktop |

| Windows | Stable | Native desktop |

| Linux | Stable | Native desktop |


Project Structure

my_app/
├── lib/
│   ├── main.dart
│   ├── app.dart
│   ├── features/
│   │   ├── home/
│   │   │   ├── home_screen.dart
│   │   │   ├── home_controller.dart
│   │   │   └── widgets/
│   │   └── settings/
│   ├── core/
│   │   ├── theme/
│   │   ├── utils/
│   │   └── constants/
│   └── shared/
│       ├── models/
│       ├── services/
│       └── widgets/
├── test/
├── pubspec.yaml
└── analysis_options.yaml

Basic Structure

Main Entry

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'My App',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
        useMaterial3: true,
      ),
      home: const HomeScreen(),
    );
  }
}

Stateless Widget

class GreetingCard extends StatelessWidget {
  const GreetingCard({
    super.key,
    required this.name,
  });

  final String name;

  @override
  Widget build(BuildContext context) {
    return Card(
      child: Padding(
        padding: const EdgeInsets.all(16),
        child: Text(
          'Hello, $name!',
          style: Theme.of(context).textTheme.headlineMedium,
        ),
      ),
    );
  }
}

Stateful Widget

class Counter extends StatefulWidget {
  const Counter({super.key});

  @override
  State<Counter> createState() => _CounterState();
}

class _CounterState extends State<Counter> {
  int _count = 0;

  void _increment() {
    setState(() {
      _count++;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Text(
          'Count: $_count',
          style: Theme.of(context).textTheme.headlineLarge,
        ),
        const SizedBox(height: 16),
        ElevatedButton(
          onPressed: _increment,
          child: const Text('Increment'),
        ),
      ],
    );
  }
}

Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/flutter-development/).

| Topic | File | Covers |

| --- | --- | --- |

| State Management | CODE0 | Riverpod (Recommended); BLoC Pattern |

| Navigation | CODE0 | GoRouter (Recommended) |

| Common Widgets | CODE0 | Lists; Forms |

| Networking | CODE0 | Dio HTTP Client |

| Local Storage | CODE0 | Hive (Recommended); SharedPreferences |

| Platform-Specific Code | CODE0 | 22 lines |

| Testing | CODE0 | Widget Tests; Unit Tests |

| Performance | CODE0 | Best Practices |

| Best Practices | CODE0 | DO:; DON'T: |

| Dart 3 Features | CODE0 | Sealed Classes and Pattern Matching; Records; Extension Types; If-Case and Switch Expressions |

| Riverpod 3.0 Patterns | CODE0 | 46 lines |

| Material 3 / Material You | CODE0 | 38 lines |

| Build and Deployment | CODE0 | Fastlane; Codemagic CI/CD; EAS Build (for Expo/RN comparison reference) |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.