프로젝트
GitHub에서 보기
mitchtabian/MVVMRecipeApp
소개
Kotlin, MVVM, Navigation Component, Hilt, Jetpack Compose, Retrofit2
학습 및 교육What you can do
- Jetpack Compose
- Simpler than LiveData or Flow with respect to composables.
- Navigation Components
- Single Activity Architecture
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWhat is this project?
This course will replace my old java mvvm introduction: https://codingwithmitch.com/courses/rest-api-mvvm-retrofit2/.
Watch the new course here: https://codingwithmitch.com/courses/jetpack-compose-mvvm-for-beginners/
This is a beginner course.
Main Features
- Kotlin
- MVVM
- Jetpack Compose
- MutableState
- Simpler than LiveData or Flow with respect to composables.
- Hilt
- Navigation Components
- Retrofit2
- Single Activity Architecture
- App Themes
- Custom Fonts
- Light and Dark theme
- Toggle between themes
Compose features
- Snackbars
- Dialogs
- Theming
- Fonts
- Colors
- Animations introduction
- creating a 'shimmering' loading animation
- ConstraintLayout
- Rows
- Columns
- Scaffold
- AppBar
- Circular Progress Indicator
Why not Flow or LiveData?
- LiveData
- LiveData has always been a love/hate thing for me. It's great for some things but can be very annoying for others. For example you MUST have an observer for livedata to emit anything. Making it pretty useless in a repository or anywhere except viewmodel->view communication.
- Flow
- Flow is great. I use flows for my use cases when building out clean architecture. You don't need an "android observer" because flow lives in the coroutine world and there's even support for operators like RxJava has.
- Easily converted from livedata with a single function call.
- Tons of other useful properties. Check out the flow docs.
- StateFlow
- StateFlow is the newest addition to kotlinx.coroutines.flow. Simply put StateFlow is a flow with special properties.
- Originally I had planned to use StateFlow in this course but it's really just totally unnecessary. I don't want to show you an unrealistic example of how to use something so I'm sticking with the very simple MutableState in viewmodels.
References
관련 프로젝트 살펴보기
불러오는 중…