Uploaded September 2018 | Updated November 2026, 3 hours ago
π Read the written tutorial with all the code ππ
resocoder.com/mvvm-android-kotlin-crash-course
Start saving time now by planning weekly with Week Sweep: bit.ly/2Jf3QA0
Model - View - ViewModel is an architectural pattern which will empower you to write manageable, maintainable, cleaner and testable code. MVVM is also supported and encouraged by Google itself. There are many first-party libraries like lifecycle-aware components, LiveData, ViewModel and many more.
In this tutorial you are going to put MVVM pattern into practice. You will build a simple, yet real-enough app which will make you understand MVVM on a deeper level. It will be an app displaying quotes which you put in. This quote app will have a ViewModel, Repository, fake database and a simple dependency injection. This will give you a strong foundation to build on.
Go to my website for more information, code examples and articles:
β resocoder.com
Follow me on social media:
β facebook.com/resocoder
β twitter.com/resocoder
π Read the written tutorial with all the code ππ
resocoder.com/mvvm-android-kotlin-crash-course
Start saving time now by planning weekly with Week Sweep: bit.ly/2Jf3QA0
Model - View - ViewModel is an architectural pattern which will empower you to write manageable, maintainable, cleaner and testable code. MVVM is also supported and encouraged by Google itself. There are many first-party libraries like lifecycle-aware components, LiveData, ViewModel and many more.
In this tutorial you are going to put MVVM pattern into practice. You will build a simple, yet real-enough app which will make you understand MVVM on a deeper level. It will be an app displaying quotes which you put in. This quote app will have a ViewModel, Repository, fake database and a simple dependency injection. This will give you a strong foundation to build on.
Go to my website for more information, code examples and articles:
β resocoder.com
Follow me on social media:
β facebook.com/resocoder
β twitter.com/resocoder



![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)



![Flutter TDD Clean Architecture Course [13] β Dependency Injection
π Learn from the written tutorial ππ
https://resocoder.com/flutter-tdd-clean-architecture-ep13
π¨βπ» Do you write good code? Find out now!
https://resocoder.com/good-code-quiz
We have all of the individual pieces of the app architecture in place. Before we can utilize them by building a UI though, we have to connect them together. Since every class is decoupled from its dependencies by accepting them through the constructor, we somehow have to pass them in.
Weve been doing this all along in tests with the βmockedβ classes. Now, however, comes the time to pass in real production classes using a service locator.
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 [13] β Dependency Injection](https://i.ytimg.com/vi/gfLb4rqzio4/mqdefault.jpg)

