Oct 22 2020 · Kotlin 1.4, Android 11, Android Studio 4.2
Part 1: Jetpack Compose Basics
08. Build Common UI Components: Part 2
About this episode Leave a rating/review See forum comments Cinema mode Mark complete Download course materials Previous episode: 07. Build Common UI Components: Part 1 Next episode: 09. Build Common UI Components: Part 3
Notes: 08. Build Common UI Components: Part 2
When building the
AddBookReview feature, specifically the
RatingBar handler for rating selection, make sure to also add the following line of code to the lambda function:
_bookReviewState.value = _bookReviewState.value.copy(rating = newRating).
This will store the data within the
ReviewState, to save the rating to the database when you finish adding a review.