Flutter Clean Architecture
Flutter apps with Clean Architecture separation of concerns.
🚀 Quick Start
// domain/entities/user.dart
class User {
final String id;
final String name;
User(this.id, this.name);
}
// presentation/pages/user_page.dart
class UserPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(body: Center(child: Text('User Page')));
}
}
📋 When to Use
- ✅ Scalable Flutter applications
- ✅ Need clear layer separation (domain, data, presentation)
- ❌ Not for simple prototypes
🔧 Step-by-Step Instructions
- Create Flutter project:
flutter create my_app - Organize folders:
domain/,data/,presentation/ - Define entities and use cases
- Run:
flutter run
📦 Dependencies
flutter create my_app
🧪 Examples
Input: Navigation to UserPage → Output: User page displayed
🔗 Resources
✅ Validation
- Project compiles without errors
- Layers properly isolated
- Navigation works between pages
Source: ssrjkk/claude-skills — distributed by TomeVault.