Oct 22 2020 · Kotlin 1.4, Android 11, Android Studio 4.2
Part 1: Jetpack Compose Basics
08. Build Common UI Components: Part 2
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.