flutter-best-practices
Installation
SKILL.md
Flutter Best Practices
Expert guidelines for building production-ready Flutter applications across mobile, web, and desktop platforms.
Quick Start
When starting a new Flutter project or reviewing code:
- Architecture: Use feature-first folder structure with clean separation of concerns
- State Management: Prefer Riverpod for new projects; use BLoC for complex async flows
- Navigation: Use go_router for deep linking and web support
- Testing: Follow the testing pyramid - unit → widget → integration
- Performance: Use
constconstructors,ListView.builder, and proper disposal patterns
Architecture Patterns
Three-Layer Architecture
Organize code into distinct layers for maintainability: