Reference Flutter project layout for the flutter-cursor-plugin.
This repository shows a minimal but production-oriented structure you can copy when bootstrapping a Flutter app with AI-assisted workflows.
lib/
app/
app.dart
features/
counter/
data/
domain/
presentation/
main.dart
test/
features/
counter/
- Feature:
counter - Layers:
domain->data->presentation - State:
ChangeNotifiercontroller - Test: widget test for increment flow
flutter pub get
flutter analyze
flutter test
flutter runTypical flow:
implement-flutter-featureto scaffold and implement feature slices.generate-flutter-teststo add unit/widget coverage.review-flutter-codeorflutter:review-flutter-codefor risk-focused review.