Uploaded September 2019 | Updated November 2026, 3 hours ago
π Learn from the written tutorial ππ
resocoder.com/flutter-tdd-clean-architecture-ep6
π¨βπ» Do you write good code? Find out now!
resocoder.com/good-code-quiz
After the previous part, we now have all the contracts of the Repository's dependencies in place. Those dependencies are the local and remote Data Source and also the NetworkInfo class, for finding out if the user is online. Mocking these dependencies will allow us to implement the Repository class using test-driven development.
Go to my website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
π Learn from the written tutorial ππ
resocoder.com/flutter-tdd-clean-architecture-ep6
π¨βπ» Do you write good code? Find out now!
resocoder.com/good-code-quiz
After the previous part, we now have all the contracts of the Repository's dependencies in place. Those dependencies are the local and remote Data Source and also the NetworkInfo class, for finding out if the user is online. Mocking these dependencies will allow us to implement the Repository class using test-driven development.
Go to my website for more information, code examples, and articles:
β resocoder.com
Follow me on social media:
β instagram.com/resocoder
β facebook.com/resocoder
β twitter.com/resocoder
![Flutter Firebase & DDD Course [7] - Injectable & Linting
π Get the code ππ
https://github.com/ResoCoder/flutter-ddd-firebase-course
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
Weve gone through some tough concepts in the previous parts. From value objects to an authentication facade, weve set up the core parts of getting the first feature of the app ready, that is, signing in.
Before moving any further to implementing the user interface, lets step back and do things which may not be as glamorous as what weve done up until now, but are still important. For example, dependency injection and linting.
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 [7] - Injectable & Linting](https://i.ytimg.com/vi/c0MUcUpmViU/mqdefault.jpg)








![Flutter TDD Clean Architecture Course [8] β Local Data Source
π Learn from the written tutorial ππ
https://resocoder.com/flutter-tdd-clean-architecture-ep8
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
The next dependency of the Repository is the local Data Source used for caching data gotten from the remote API. Were going to implement it using shared_preferences. There are plenty of options to choose from when it comes to local data persistence. Were βusing shared_preferences because we dont store a lot of data - just a single NumberTrivia which will be converted to JSON.
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 [8] β Local Data Source](https://i.ytimg.com/vi/fCguzcvLka8/mqdefault.jpg)
![Flutter Firebase & DDD Course [2] β Authentication Value Objects
π Written tutorial & full project ππ
https://resocoder.com/firebase-ddd-flutter-2
π§ Get Flutter news π° and resources:
π http://flutter.education
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
We have the big picture of Domain-Driven Design already in our minds so now its time to get coding. You might think that since we are building a Firebase app, we will need to worry about using the Firestore and FirebaseAuth classes right from the start. Thats not true at all with DDD. Lets start in the most important layer of them all - the domain layer. Namely, we are going to tackle authentication.
How can we sign in using email and password? The usual way would be to have a sign in form that would validate the inputted Strings. You know, email addresses must have the @ sign and passwords must be at least six characters long. We would then pass these Strings to the authentication service, in our case, Firebase Auth. Sure, this is perfectly doable but we have to realize one important fact...
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 Flutter Firebase & DDD Course [2] β Authentication Value Objects](https://i.ytimg.com/vi/fdUwW0GgcS8/mqdefault.jpg)