
Dart Flutter Patterns
This is a comprehensive reference for writing production Flutter code the right way. It covers the fundamentals that trip up most teams: null safety patterns that avoid the bang operator, sealed classes for state hierarchies, proper async composition with Future.wait, and the critical mounted check after await. The state management section gives you working examples for BLoC, Riverpod, and Provider instead of making you choose blindly. GoRouter setup includes the refreshListenable pattern for auth guards, Dio examples show token refresh with retry logic, and the testing guidance favors fakes over mocks. The widget architecture advice is spot on: extract to classes not methods, propagate const everywhere. If you're past the tutorial phase and need to see how the pieces actually fit together in a real codebase, this fills that gap.
- install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
- 6
- skills.sh installs
- 3.9K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --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/everything-claude-code
- Category
- Mobile Development
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Healthcare Cdss Patterns3.9K
- Healthcare Emr Patterns3.9K
- Product Lens3.9K
- Token Budget Advisor3.9K
- Customer Billing Ops3.8K
- Dashboard Builder3.8K
- Healthcare Eval Harness3.8K
- Manim Video3.8K
- Ui Demo3.8K
- Agent Introspection Debugging3.7K
- Connections Optimizer3.7K
- Dotnet Patterns3.7K
- Finance Billing Ops3.7K
- Gan Style Harness3.7K
- Google Workspace Ops3.7K
- Knowledge Ops3.7K
- Lead Intelligence3.7K
- Openclaw Persona Forge3.7K
- Opensource Pipeline3.7K
- Security Bounty Hunter3.7K
- Workspace Surface Audit3.7K
- Accessibility3.6K
- Agent Sort3.6K
- Api Connector Builder3.6K