计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
flutter-layer-based-clean-architecture【效率与协作】Enforce inward dependency flow, pure domain layers, and DTO-to-entity mapping in Flutter DDD architecture. Use when structuring layers or boundaries; defer navigation-only routing and feature implementation such as notifications.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
@freezed in lib/domain/entities/lib/domain/repositories/lib/infrastructure/dtos/ with fromJson/toEntity mapperlib/infrastructure/repositories/lib/application/ consuming repository interfaceget_it injection containerlib/presentation/ using BlocBuilderlib/
├── domain/ # Pure Dart: entities (@freezed), failures, repository interfaces
├── infrastructure/ # Implementation: DTOs, data sources, mappers, repo impls
├── application/ # Orchestration: BLoCs / Cubits
└── presentation/ # UI: Screens, reusable components
Presentation -> Application -> Domain <- Infrastructure. Dependencies point inward.Domain.Either<Failure, Success>.See DTO-to-Entity mapping example.
@freezed for all entities and failures.get_it to inject repository implementations into BLoCs..g.dart or Data class directly in Widget.package:flutter/material.dart in domain layer.shared_preferences directly in Repository; use Data Source.For full implementation templates and DTO-to-Domain mapping examples: See references/REFERENCE.md.
When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant: