Notes app sample in Dart / Flutter with DDD.
This is an outcome of my attempt to understand Domain-Driven Design and consider how I can introduce it to app development in Flutter. The attempt began when I wondered what directory structure would be better and started to try to figure it out.
DDD may be too much for a small app like this, resulting in unnecessarily bloated code, but should help you more in development of larger apps.
- master (current branch)
- The original example with ChangeNotifier
- state_notifier
- A newer example with StateNotifier (w/o Freezed)
- I tried this to see if it could make things easier, but unfortunately I did not really see benefits from just separating states from notifiers and making the states immutable in this project. It may matter more in other projects.
- A newer example with StateNotifier (w/o Freezed)
- Dart/Flutterでドメイン駆動設計(DDD)してみた - 導入編 (Japanese)
- This post describes what DDD and architectures are like and what structure I chose.
- Dart/Flutterでドメイン駆動設計(DDD)してみた - 実装編 (Japanese)
- This shows what I considered in implementing DDD in Dart / Flutter.
- Book: 現場で役立つシステム設計の原則
- ボトムアップドメイン駆動設計 │ nrslib
- ボトムアップドメイン駆動設計 後編 │ nrslib
- 「DDDのモデリングとは何なのか、 そしてどうコードに落とすのか」資料 / Q&A - little hands' lab
- ドメイン駆動設計(DDD) カテゴリーの記事一覧 - little hands' lab
- Icon by Hamza Saleem, taken from IconArchive.com