
Dart Flutter Patterns
Production Dart and Flutter patterns that cover the stuff you actually need: null safety without bang operators, sealed classes for state hierarchies, async composition with Future.wait, and the widget architecture rules that prevent rebuilds. It walks through BLoC, Riverpod, and Provider with real examples, plus GoRouter setup with reactive auth guards and Dio interceptors with token refresh. The testing section shows you how to wire up BLoC tests and ProviderScope overrides. Honestly, this is the reference you keep open when setting up a new feature or reviewing code that feels off. It's opinionated where it needs to be, like preferring widget classes over methods and being strict about mounted checks after await.
- skills.sh installs
- 5.7K
- GitHub stars
- 300.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add affaan-m/ecc --skill dart-flutter-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
Dart/Flutter Patterns
When to Use
Use this skill when:
- Starting a new Flutter feature and need idiomatic patterns for state management, navigation, or data access
- Reviewing or writing Dart code and need guidance on null safety, sealed types, or async composition
- Setting up a new Flutter project and choosing between BLoC, Riverpod, or Provider
- Implementing secure HTTP clients, WebView integration, or local storage
- Writing tests for Flutter widgets, Cubits, or Riverpod providers
- Wiring up GoRouter with authentication guards
How It Works
Sponsors
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Frontend Development, Code Review & Quality, Mobile Development
- First seen
- Jul 14, 2026
More from affaan-m/ecc
All 263- Mysql Patterns5.7K
- Production Audit5.7K
- Documentation Lookup5.7K
- Make Interfaces Feel Better5.7K
- Windows Desktop E2e5.7K
- Motion Advanced5.6K
- Cost Aware Llm Pipeline5.6K
- Mcp Server Patterns5.6K
- Council5.6K
- Fal Ai Media5.6K
- Jpa Patterns5.6K
- Mle Workflow5.6K
- Compose Multiplatform Patterns5.6K
- Llm Trading Agent Security5.6K
- Swiftui Patterns5.6K
- Github Ops5.6K
- Autonomous Loops5.6K
- Data Scraper Agent5.6K
- Springboot Verification5.6K
- Django Verification5.6K
- Django Celery5.6K
- Dotnet Patterns5.6K
- Blueprint5.5K
- Ecc Guide5.5K