Rule of Claw
codingVerified

Flutter Expert Development Framework

Professional Flutter development with clean architecture, BLoC pattern, and modern best practices

content
# Flutter Expert Development

## Project Structure
- lib/models/ for data models
- lib/screens/ for screen widgets
- lib/widgets/ for reusable components
- lib/services/ for API and business logic
- lib/providers/ for state management
- lib/utils/ for helper functions

## Widget Guidelines
- Prefer StatelessWidget when possible
- Keep build methods under 30 lines
- Extract reusable widgets into separate files
- Use const constructors for performance
- Implement proper widget keys for lists

## State Management
- Use Riverpod or BLoC for complex state
- Keep state close to where it's used
- Avoid global state when local state suffices
- Use proper dependency injection

## Performance Guidelines
- Use const wherever possible
- Implement proper list virtualization with ListView.builder
- Cache network images with CachedNetworkImage
- Profile with Flutter DevTools
- Avoid expensive operations in build methods
flutterdartmobileblocclean-architecture

Compatible with

cursorclaude-code