Uploaded July 2019 | Updated November 2026, 3 hours ago
📗 Learn from the written tutorial & get the project files 👇👇
resocoder.com/flutter-moor-ep3
👨💻 Do you write good code? Find out now 👇
resocoder.com/good-code-quiz
Your app's database will probably have more than one table. You want to store tasks together with their tags, or maybe recipes and their authors. No matter what you store, it's usually the case that some of the tables are quite interconnected and it would be perfect to get just the right data from both tables at the same time. That's what SQL joins are for.
To make joins safe, it's a good idea to use foreign keys. Otherwise you might end up trying to get a tag or a recipe which doesn't exist... and that's not all that good.
Finally, adding new columns or whole tables requires you to provide a migration to let the previous versions of the database upgrade themselves.
We're building a task list application in this series, so we will add tags to the mix. They will be stored inside a separate table. Every task can have a tag and to get the tasks together with tags, we will utilize foreign keys and table joins. The user interface will also change a bit.
Go to the website for more information, code examples, and articles:
● resocoder.com
Follow me on social media:
● instagram.com/resocoder
● facebook.com/resocoder
● twitter.com/resocoder
● gab.ai/resocoder
📗 Learn from the written tutorial & get the project files 👇👇
resocoder.com/flutter-moor-ep3
👨💻 Do you write good code? Find out now 👇
resocoder.com/good-code-quiz
Your app's database will probably have more than one table. You want to store tasks together with their tags, or maybe recipes and their authors. No matter what you store, it's usually the case that some of the tables are quite interconnected and it would be perfect to get just the right data from both tables at the same time. That's what SQL joins are for.
To make joins safe, it's a good idea to use foreign keys. Otherwise you might end up trying to get a tag or a recipe which doesn't exist... and that's not all that good.
Finally, adding new columns or whole tables requires you to provide a migration to let the previous versions of the database upgrade themselves.
We're building a task list application in this series, so we will add tags to the mix. They will be stored inside a separate table. Every task can have a tag and to get the tasks together with tags, we will utilize foreign keys and table joins. The user interface will also change a bit.
Go to the website for more information, code examples, and articles:
● resocoder.com
Follow me on social media:
● instagram.com/resocoder
● facebook.com/resocoder
● twitter.com/resocoder
● gab.ai/resocoder





![Flutter TDD Clean Architecture Course [10] – Bloc Scaffolding & Input Conversion
📗 Learn from the written tutorial 👇👇
https://resocoder.com/flutter-tdd-clean-architecture-ep10
Presentation layer contains the UI in the form of Widgets and also the presentation logic holders, which can be implemented as a ChangeNotifier, Bloc, Reducer, ViewModel, MobX Store... You name it! In the case of our Number Trivia App though, were going to use the flutter_bloc package to help us with implementing the BLoC pattern.
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● https://instagram.com/resocoder
● https://www.facebook.com/resocoder
● https://twitter.com/resocoder Flutter TDD Clean Architecture Course [10] – Bloc Scaffolding & Input Conversion](https://i.ytimg.com/vi/Ulk9qUErIa4/mqdefault.jpg)



![Flutter Firebase & DDD Course [12] - Note Value Objects
📗 Get the code 👇👇
https://github.com/ResoCoder/flutter-ddd-firebase-course
🎯 The biggest Flutter conference in Europe:
https://fluttereurope.dev
📧 Get Flutter news 📰 and resources:
👉 http://flutter.education
👨💻 Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
From the previous part, we know which business rules occur in the notes feature of the app and weve already created the failures used to let the user know when such rules are not being followed. How can we enforce these rules though? Well, with validation and value objects.
Go to my website for more information, code examples, and articles:
● https://resocoder.com
Follow me on social media:
● https://instagram.com/resocoder
● https://www.facebook.com/resocoder
● https://twitter.com/resocoder Flutter Firebase & DDD Course [12] - Note Value Objects](https://i.ytimg.com/vi/VwqPxlp7QmI/mqdefault.jpg)
